global
object. For more information on the global
object, read Custom Database Action Script Environment Best Practices.
fetch
method, which gets a resource from a network then returns a Promise object, written using promise chains.
fetch
method, which gets a resource from a network then returns a Promise object, written using async functions.
callback
function signals the action script’s operation is complete and must be called exactly once. An action script should complete immediately after a call to the callback
function, preferably by explicitly using the return
statement.
callback
function is called more than once, then it may lead to unexpected results and/or errors.If the callback
function is not called at all, then execution of the action script will stall, and an error will be returned when the Webtask container is recycled.callback
function must be called after all asynchronous operations complete.
callback
function is called with no parameters, it will be executed as if a null
parameter had been provided.
npm
modules. For more information on npm
modules, read Custom Database Action Script Environment Best Practices.
The larger the size of a script, the more latency is introduced based on the packaging and transport process employed by the Webtask platform. The size impacts the performance of the system.
Error
object to the callback
function with a descriptive message of the error:
user
object returns the access_token
and refresh_token
properties, Auth0 handles them differently from other types of user information. Auth0 stores them in the user
object’s identities
property:
read:user_idp_tokens
scope when requesting an Access Token.