Is SSO possible between a Native App and Regular Web App?

Problem statement

We currently only have two apps in production which are using the Universal Login, but one is a native app and the other one is a regular web app.

Can Auth0 provide SSO between both apps if they are using the same database with Universal Login?

Solution

This will depend on the SDK’s being used for the Regular Web App and the Native App.

  • If you use an SDK like Auth0.Swift in the mobile app, the browser where the login page is opened shares the cookie jar with the default web browser in the device. So you should have SSO between the mobile app and the web app.

  • If a Native SDK opens the login page in a WebView, it does not share the cookies from the default browser - so it’s not possible to re-use the session created by the Regular Web App.