auth0-react
auth0-react copied to clipboard
Surface revokeRefreshToken() in the React SDK
Checklist
- [x] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [x] I have looked into the API documentation and have not found a suitable solution or answer.
- [x] I have searched the issues and have not found a suitable solution or answer.
- [x] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [x] I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
auth0-spa-js added Auth0Client.revokeRefreshToken() in https://github.com/auth0/auth0-spa-js/pull/1541. Since @auth0/auth0-react wraps auth0-spa-js, please expose it on useAuth0() too.
Describe the ideal solution
Originally requested in #413, closed in favor of auth0/auth0-spa-js#1013 — which has now shipped. Please surface it on the React side.
const { revokeRefreshToken } = useAuth0();
await revokeRefreshToken();
Alternatives and current workarounds
No response
Additional context
No response
Thanks for the detailed report and tracking down the upstream history. We'll look into surfacing this on the React side.