Hi!
I’m building a webapp using NextJS and I’m optimizing for mobile devices, so I’m using an in-app authorization flow as users don’t tend to be logged in on their mobile browsers.
My users are very likely to open my webapp on an in-app browser and the problem that this has is that the auth0 callback will go to the system’s default browser, which doesn’t have the initial cookie that auth0 creates. Here’s an example:
- User receives the link through a Slack message.
- They open the link and it opens the inapp-browser.
- They try to login with Spotify.
- My webapp triggers the Android intent to open the inapp-authorization. Spotify opens.
- User approves the connection.
- Spotify oauth flow sends back the result to my tenant’s callback URL, which opens on the system’s default browser.
- Auth0 says that it couldn’t find the session.
What is the best way to support this use case?
Thanks in advance!