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 panel and calling it using _auth_token key from the args input argument.

For example:
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 {}Last updated
Was this helpful?