Links
Comment on page

Account Token

Securely access your Token from the UbiFunction’s code, avoiding copy-pasting API tokens directly into the code, by selecting a Token in the dropdown from the left panel and calling it using _auth_token key from the args input argument.
For example:
NodeJs
Python
function main(args) {
token = args._auth_token;
console.log(`The token selected is: ${token}`);
return {}
}
def main(args):
token = args["_auth_token"]
print(f"The token selected is: {token}")
return {}