So we have two applications, one is running React and the other Next.JS and we have a universal login and a shared session
The requirement is that if the user logs onto the React application I should be able to detect the session existing and hence be able to log onto the Next.JS app as well, but we’re not able to detect the session or call login on the loading of the page. We tried two methods : the silently authenticating using the prompt: none and the getSession method and both don’t work.
I wanted to ask how can we access the token and automatically login the user if the shared session exists inside the Next JS application.