Methods
authorize(parameters, callback)
Opens the OS browser and redirects to {domain}/authorize
url in order to initialize a new authN/authZ transaction
- Source:
- See:
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
Object
|
|
||||||||||||||||||||
callback |
authorizeCallback
|
onRedirectUri(url)
Handler that must be called with the redirect url the browser tries to open after the OAuth flow is done.
To listen to that event, using cordova-plugin-customurlscheme, you need to register a callback in the method window.handleOpenURL
var Auth0Cordova = require('@auth0/cordova');
window.handleOpenURL = Auth0Cordova.onRedirectUri(url);
Parameters:
Name | Type | Description |
---|---|---|
url |
String
|
with a custom scheme relied to the application |
Type Definitions
authorizeCallback(erropt, resultopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
err |
Error
|
<optional> |
error returned by Auth0 with the reason of the Auth failure |
||||||||||||||||||||
result |
Object
|
<optional> |
result of the Auth request
|