Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

handle oauth Auth0 callback in onsen react



  • I am using Onsen React and Auth0 to provide authentication. My Login component prompts user to auth to google via Auth0 and I see the token on the callback url - http://localhost:3000/callback#access_token=eyJ0

    I do not see an easy way to get navigator to catch this and process it with the rest of Auth0’s code for parsing the URL hash data. However, I was able to detect that my Login componentDidMount and in there take window.location.pathname and split the token off of that. But it feels like there is probably a better way.

    Also, from within that function, I am not able to redirect to another page using: this.props.navigator.resetPage(getRoute(‘apptabbar’));
    I get Uncaught TypeError: Cannot read property ‘_isRunning’ of null
    at Navigator.isRunning (react-onsenui.js:3006)

    Any help appreciated.