You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* ```js
* auth0.logout({ returnTo: window.location.origin });
* ```
*
* Clears the application session and performs a redirect to `/v2/logout`, using
* the parameters provided as arguments, to clear the Auth0 session.
* If the `logoutParams.federated` option is specified, it also clears the Identity Provider session.
* [Read more about how Logout works at Auth0](https://auth0.com/docs/logout).
*/
logout: (options?: LogoutOptions) => Promise<void>;
Thanks for reporting this. The code sample for logout in the jsdocs is incorrect and for v2 it should be:
auth0.logout({logoutParams: {returnTo: '...'}})
You can use returnTo to tell Auth0 where it should redirect back to, after logging out.
I opened a PR to fix that code sample, but for the rest, the docs seem to be still accurate.
As you are using Browser.open(), are you using Capacitor's browser? If so, we have specific guidance for integrating the SDK with Capacitor's browser here : https://auth0.com/docs/quickstart/native/ionic-react
Checklist
Description
Notably it recommends
but actually it needs to be
or simply
Reproduction
Here's a component which reproes
Additional context
No response
auth0-react version
2.0.1
React version
18.2.0
Which browsers have you tested in?
Chrome
The text was updated successfully, but these errors were encountered: