Builds the full authorize endpoint url in the Authorization Server (AS) with given parameters.
parameters params to send to /authorize
@param String params.responseType type of the response to get from /authorize.
@param String params.redirectUri where the AS will redirect back after success or failure.
@param String params.state random string to prevent CSRF attacks.
@returns String authorize url with specified params to redirect to for AuthZ/AuthN.
ref link: https://auth0.com/docs/api/authentication#authorize-client
Performs creating user with specified values
@param Object params create user params
@param String params.email user's email
@param String - params.username user's username
@param String params.password user's password
@param String params.connection name of the database connection where to create the user
@param String - params.metadata additional user information that will be stored in user_metadata
@returns Future
Exchanges a code obtained via /authorize (w/PKCE) for the user's tokens
params used to obtain tokens from a code
@param String params.code code returned by /authorize.
@param String params.redirectUri original redirectUri used when calling /authorize.
@param String params.verifier value used to generate the code challenge sent to /authorize.
@returns a Future with userInfo
ref link: https://auth0.com/docs/api-auth/grant/authorization-code-pkce
Exchanges a code obtained from SignIn-with-Apple social login for the user's tokens
@param subjectToken the auth code token issued by Sign-in-with-Apple service
@param scope the scopes requested for the issued tokens. e.g. openid profile
@returns a Future with userInfo
ref link: https://auth0.com/docs/api-auth/grant/authorization-code-pkce
Performs Auth with user credentials using the Password Realm Grant
clientSecret is a secret key from auth0 account.
params to send realm parameters
@param String params.username user's username or email
@param String params.password user's password
@param String params.realm name of the Realm where to Auth (or connection name)
@param String - params.audience identifier of Resource Server (RS) to be included as audience (aud claim) of the issued access token
@param String - params.scope scopes requested for the issued tokens. e.g. openid profile
@returns a Future with Auth0Userref link: https://auth0.com/docs/api-auth/grant/password#realm-support
Performs Auth with user credentials using the Password Realm Grant
params to send realm parameters
@param String params.username user's username or email
@param String params.password user's password
@param String params.realm name of the Realm where to Auth (or connection name)
@param String - params.audience identifier of Resource Server (RS) to be included as audience (aud claim) of the issued access token
@param String - params.scope scopes requested for the issued tokens. e.g. openid profile
@returns a Future with Auth0Userref link: https://auth0.com/docs/api-auth/grant/password#realm-support
Request an email with instructions to change password of a user
@param Object parameters reset password parameters
@param String parameters.email user's email
@param String parameters.connection name of the connection of the user
@returns Future
Performs sending sms code on phone number
params to send parameters
connectionType connection type to use, possible values: "sms", "email", defaults to sms
connectionType send code type to use, possible: "code", "link", defaults to code
@param String params.phone_number user's phone number (if using phone)
@param String params.email user's email address (is using email)
@returns a Future with bool
Performs verification of phone number
params to send parameters
realm realm for authentication, possible values: "sms", "email", defaults to sms
@param String params.otp - code form sms/email
@param String params.username - users phone is sms realm or email, if email realm is being used
@returns a Future with Auth0User