api.access
Modify the access of the user that is logging in, such as rejecting the login attempt.
api.access.deny(reason, userMessage)
Deny the user from being able to register. The signup flow will immediately stop following the
completion of this action and no further Actions will be executed.
Parameters
api.user
Make changes to the metadata of the user that is logging in.
api.user.setAppMetadata(key, value)
Set application-specific metadata for the user that is logging in.
Note: This method should not be used in callbacks. Invoking this method won’t update the metadata immediately.
You can call this several times throughout multiple actions of the same flow and the engine will aggregate the
changes and update the metadata at once before the flow is completed.
Parameters
api.user.setUserMetadata(key, value)
Set general metadata for the user that is logging in.
Note: This method should not be used in callbacks. Invoking this method won’t update the metadata immediately.
You can call this several times throughout multiple actions of the same flow and the engine will aggregate the
changes and update the metadata at once before the flow is completed.
Parameters
api.cache
Store and retrieve data that persists across executions.
api.cache.delete(key)
Delete a record describing a cached value at the supplied
key if it exists.
Parameters
api.cache.get(key)
Retrieve a record describing a cached value at the supplied key,
if it exists. If a record is found, the cached value can be found
at the value property of the returned object.
Parameters
api.cache.set(key, value, options)
Store or update a string value in the cache at the specified key.
Values stored in this cache are scoped to the Trigger in which they
are set. They are subject to the Actions Cache Limits.
Values stored in this way will have lifetimes of up to the specified
ttl or expires_at values. If no lifetime is specified, a default of
lifetime of 15 minutes will be used. Lifetimes may not exceed the maximum
duration listed at Actions Cache Limits.
Important: This cache is designed for short-lived, ephemeral data. Items may not be
available in later transactions even if they are within their supplied their lifetime.
Parameters