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
Is your feature request related to a problem? Please describe.
During OAuth logins, Chainlit sets a state cookie in the browser, which is used to prevent attackers from logging in on behalf of other users by stealing the URL users are being redirected to after OAuth provider login.
Is your feature request related to a problem? Please describe.
During OAuth logins, Chainlit sets a state cookie in the browser, which is used to prevent attackers from logging in on behalf of other users by stealing the URL users are being redirected to after OAuth provider login.
The lifetime of this cookie is currently hardcoded to 3 minutes.
When using email to login, this is often not enough, severely degrading user experience.
Describe the solution you'd like
Make the state lifetime cookie configurable.
Describe alternatives you've considered
Additional context
Users experiencing this will see a rather unfriendly 'Unauthorized' JSON, the UX of which deserves a separate issue.
Possibly related:
The text was updated successfully, but these errors were encountered: