-
Notifications
You must be signed in to change notification settings - Fork 146
-
I have deployed the app on kubernetes and redirect url points to a url within the deployed environment, but I get the error, invalid_grant, state mismatch.
Example:
app_url = https://backend..com/login
redirect_url = https://backend..com/auth/callback
The same code works for http://localhost
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Currently this sample app uses file-based session by default. If your production environment has multiple instances of this app running on different machines, the initial login attempt and the subsequent auth response may not hit the same machine, thus unable to utilize the state persisted in session. Similar issue has been reported in #99 .
You may try to use a centralized session. See hints here.
Beta Was this translation helpful? Give feedback.