-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gotrue): Add signInAnonymously()
method
#883
Conversation
Co-authored-by: Vinzent <vinzent03@proton.me>
Co-authored-by: Vinzent <vinzent03@proton.me>
Co-authored-by: Vinzent <vinzent03@proton.me>
Co-authored-by: Vinzent <vinzent03@proton.me>
// ignore 404s since user might not exist anymore | ||
if (error.statusCode != '401' && error.statusCode != '404') { | ||
if (error.statusCode != '401' && | ||
error.statusCode != '403' && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This edit has been made, because for deleted users on the latest Supabase auth server, the following error is returned:
AuthException(message: User from sub claim in JWT does not exist, statusCode: 403)
@@ -80,6 +80,14 @@ void main() { | |||
); | |||
}); | |||
|
|||
test('anonymous sign-in', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add a check to the test that the user anonymous is.
What kind of change does this PR introduce?
Adds
signInAnonymously()
method to support Anonymous sign-in.This PR should be merged after #879
Closes #874