Ability to invoke handleRedirectCallback() from the useAuth0 hook
See original GitHub issuePlease do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Describe the problem you’d like to have solved
I am currently building a Capacitor App that generates a link using
buildAuthoriseUrl
, navigates to that link using a popover Capacitor Browser window and then allows the user to sign in. An authorisation code is generated, however I need to manually invokehandleRedirectCallback
to authenticate the user.
It would be great if the
handleRedirectCallback
method could be accessed anywhere using theuseAuth0
hook.
Thanks!
Describe the ideal solution
Allow the
handleRedirectCallback
method to be accessed through theuseAuth0
hook (similar to howbuildAuthoriseUrl
can).
Alternatives and current work-arounds
A clear and concise description of any alternatives you’ve considered or any work-arounds that are currently in place.
None at this stage.
Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Hey @ben-hunter-andrew-robertson - we’re going to do some work to expose the
handleRedirectCallback
for this use case. I’ll update this thread when we have a PR readyFantastic, thank you very much @adamjmcgrath!