Skip to content

setSession doesnt work #23715

Answered by monicakh
furkananter asked this question in Questions
May 3, 2024 · 11 comments · 21 replies
Discussion options

You must be logged in to vote

This error is returned when we detect that the session_id claim in the access token doesn't exist in the auth.sessions table. It was introduced in this PR (supabase/auth#1538) because we realised that we were returning the wrong error when the session is missing. Before this PR was merged, the sign out API would return a panic and fail silently, returning a 5xx error to the client which can't be handled.

You can fix this by doing either one of these options:

  • Manually ignore 403s returned from signOut and just clear the local session stored on the browser.
  • Upgrade to supabase-js v2.43.1 which contains the changes to ignore 403s returned by the signOut method

Replies: 11 comments 21 replies

Comment options

You must be logged in to vote
3 replies
@furkananter
Comment options

@knielsen24
Comment options

@kangmingtay
Comment options

Comment options

You must be logged in to vote
2 replies
@knielsen24
Comment options

@GaryAustin1
Comment options

Comment options

You must be logged in to vote
1 reply
@GaryAustin1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@joshuadunning
Comment options

@Revarh
Comment options

@ColeTownsend
Comment options

@joshuadunning
Comment options

Comment options

You must be logged in to vote
2 replies
@kangmingtay
Comment options

@alignbenpersitz
Comment options

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by kangmingtay
Comment options

You must be logged in to vote
7 replies
@kangmingtay
Comment options

@maisterr
Comment options

@kangmingtay
Comment options

@ColeTownsend
Comment options

@haydn
Comment options

Comment options

You must be logged in to vote
1 reply
@haydn
Comment options

Comment options

You must be logged in to vote
1 reply
@kamajus3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet