Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. rockodragon
    R
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    rockodragon

    @rockodragon

    0
    Reputation
    1
    Posts
    364
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    rockodragon Follow

    Posts made by rockodragon

    • 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.

      posted in Onsen UI
      R
      rockodragon