Single Sign on for Single Page Applications

Hi @romanmakovyak,

Welcome to the Auth0 Community!

Unfortunately, using the getAccessTokenSilently method will always trigger the “Login is required” error message if the user was not previously signed in or if their session has expired.

This method should only be used for Silent Authentication to refresh a user’s session without prompting them for credentials again. Moreover, the user must be logged in for silent authentication to work.

In this case, I recommend using the Universal Login for SSO across your different Single Page Applications.

See How do I configure (SSO) Single Sign-On with Auth0? to learn more.

Please let me know if you have any questions.

Thank you.

1 Like