You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am using microsoft strategy. I have two domains, the standard https://www.example.com and the bare domain https://example.com. I added a condition to switch between the two in the redirect uri in the microsoft.server.ts file below:
When using the bare domain, it works. But when using the base domain with www., it fails with {"message":"Missing state on session."}. If I remove the bare domain and only use the base domain, it will work. What am I doing wrong here?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I am using microsoft strategy. I have two domains, the standard
https://www.example.com
and the bare domainhttps://example.com
. I added a condition to switch between the two in the redirect uri in themicrosoft.server.ts
file below:In
routes/auth/microsoft.ts
:In
routes/auth/microsoft/callback.ts
:I am also setting maxAge when the user is authenticated:
When using the bare domain, it works. But when using the base domain with
www.
, it fails with{"message":"Missing state on session."}
. If I remove the bare domain and only use the base domain, it will work. What am I doing wrong here?Beta Was this translation helpful? Give feedback.
All reactions