Optional
appOptional
authorizationURL parameters that will be sent back to the Authorization Server. This can be known parameters defined by Auth0 or custom parameters that you define.
Optional
fragmentUsed to add to the URL fragment before redirecting
Optional
onUsed to control the redirect and not rely on the SDK to do the actual redirect.
const client = new Auth0Client({
async onRedirect(url) {
window.location.replace(url);
}
});
since v2.0.1, use openUrl
instead.
Optional
openUsed to control the redirect and not rely on the SDK to do the actual redirect.
const client = new Auth0Client({
openUrl(url) {
window.location.replace(url);
}
});
import { Browser } from '@capacitor/browser';
const client = new Auth0Client({
async openUrl(url) {
await Browser.open({ url });
}
});
Used to store state before doing the redirect