Environment
Library of functions to access environment properties.
Functions
Scopes
Returns the scopes for the current user.
Syntax:
Environment.Scopes()
Returns
list(string)
: The scopes for the current user.
Example:
Environment.Scopes()
// Result:
// ["sales", "marketing"]
Secret
Returns the value of a secret registered in the credentials service.
Syntax:
Environment.Secret(secretName: string)
Parameters
secretName
: Name of the secret.
Returns
string
: The value of the secret.
Example:
Environment.Secret("my-secret-credential")
// Result:
// secret value