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
We are using Hasura’s authorization hook to refresh session tokens. If the action returns an error, the set-cookie header is not forwarded in the response, despite session updates in the DB. This results in a client-server session mismatch, where the client continues using an outdated authentication cookie.
Proposed Solution
The set-cookie header should be included even on non-200 responses, per RFC 6265.
Steps to Reproduce
Use an action with authentication hook.
Refresh session token.
Action returns an error.
The set-cookie header is missing from the response.
Alternative
No effective alternatives available yet.
The text was updated successfully, but these errors were encountered:
Description
We are using Hasura’s authorization hook to refresh session tokens. If the action returns an error, the set-cookie header is not forwarded in the response, despite session updates in the DB. This results in a client-server session mismatch, where the client continues using an outdated authentication cookie.
Proposed Solution
The set-cookie header should be included even on non-200 responses, per RFC 6265.
Steps to Reproduce
Alternative
No effective alternatives available yet.
The text was updated successfully, but these errors were encountered: