setSession doesnt work #23715
-
Hi, We have a switch account feature inside react native cli app. Normally until today it was working correctly but this morning it has broken. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 21 replies
-
I am having the same issue and error message |
Beta Was this translation helpful? Give feedback.
-
@knielsen24 This was discussed in Discord yesterday with the OP. https://discord.com/channels/839993398554656828/1235896967754682478 |
Beta Was this translation helpful? Give feedback.
-
session_id claim in JWT does not exist This is effecting my production app. Any updates? |
Beta Was this translation helpful? Give feedback.
-
Hey, |
Beta Was this translation helpful? Give feedback.
-
We are also experiencing this error in production. Looking for possible workarounds |
Beta Was this translation helpful? Give feedback.
-
Another instance of |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
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:
|
Beta Was this translation helpful? Give feedback.
-
In our use case, we update the user using the auth.admin.updateUserById. This works fine, but seems to trigger a change that deletes the corresponding session. We're doing
Via an endpoint, which totally works. I see the user's email and password set. However a subsequent call to supabase to simply fetch the public user, using the same token, returns When I checked the auth_audit_logs I saw
And when checking the session table for any sessions associated with |
Beta Was this translation helpful? Give feedback.
-
Anyone having the same issue now? Weird part is that only new created accounts are failing to set session. Old accounts are working as expected. |
Beta Was this translation helpful? Give feedback.
-
I'm also seeing this in the following scenario:
So it seems that somehow generating a JWT in Swift and using it to fetch data from the server invalidates the user's other sessions on web. Note that |
Beta Was this translation helpful? Give feedback.
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: