Open lenzi-e opened 2 weeks ago
I found a workaround until this is fixed. I tried clearing cookies and didn't have any luck. And (as the issue states) signOut was throwing an error. But if I clear the cookies directly before calling signout, then it works as expected. I'm using react-native / expo and this is how I cleared the cookies:
await AsyncStorage.clear();
await supabase.auth.signOut();
Bug report
Describe the bug
I have an edge function that I invoke via supabas-js which soft deletes a user. This will successfully delete the user. After that I call
auth.signOut()
and get the following error:To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Soft delete a user. (I used an edge function like this:)
It is successful and returns:
Here is the logs:
Try to logout.
Get the error:
Here is the log:
Expected behavior
I expect the logout, after the user deletion, to work successfully.