tyf
October 16, 2023, 8:57pm
2
Hey @Audacia !
Thanks for the detailed description
I recommend taking a look at the following topic:
I have an Auth0 application that has a mobile web app and a mobile native app (origins,callbacks,etc). The user has to log into either one separately.
Can a user log into the mobile app and click a button to open the web app and have it log into the web app like SSO? It would be a better user experience not to have to log in separately.
If you are using an Auth0 SDK which utilizes a browser based login flow (Chrome Custom Tabs) and Chrome on the device to access the web app along with silent authentication you should get what you are looking for. Here’s an example of silent auth in nextjs:
opened 05:22PM - 20 Nov 19 UTC
closed 11:37AM - 20 Jan 21 UTC
enhancement
### Describe the problem you'd like to have solved
There does not appear to b… e a way to have the user silently authenticate without the need for interaction from the user (ie. requiring a click of a "Login" button).
### Describe the ideal solution
A new handler (something like `SilentLoginHandler` or `CheckSessionHandler`) that would allow us to check for an existing Auth0 session and create the cookie required for subsequent authenticated calls.
### Alternatives and current work-arounds
- Since the library does not expose the cookie store, there does not appear to be a work-around
- If this library is not used, `auth0.js` appears to have a solution in `checkSession()` that will return the token of an existing session, which can be used for subsequent authenticated calls.
### Additional context
This request is in support of a requirement we have to support a shared login session seamlessly across two applications. If a user has already logged in through one application, we would like the session to be automatically loaded right when the user lands on the second application.