Skip to content
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

Is anonymous sign-in supported? #70

Open
samuelchanx opened this issue Jun 22, 2022 · 2 comments
Open

Is anonymous sign-in supported? #70

samuelchanx opened this issue Jun 22, 2022 · 2 comments
Assignees
Labels
maintenance Related to the maintenance of the packages/repo

Comments

@samuelchanx
Copy link

I have searched through the repository but couldn't find any methods related to anonymous sign in. Instead, the User from AuthResponse does return an isAnonymous property. Is it supported?

If it is not supported in the dart SDK, is there any workaround? E.g. Is sign in with refresh token a similar implementation if I have some backene code to generate refresh token for the User?

Thank you very much.

@szilarddoro
Copy link
Contributor

Hey @samuelchanx! Anonymous sign in is not available on our console yet. Once it's there, you'll be able to activate it and call <nhost-app-domain>/v1/signin/anonymous endpoint to implement the functionality in your application.

This is definitely going to be supported via our Dart SDK in the future, but not initially.

@mhadaily mhadaily self-assigned this Dec 4, 2022
@mhadaily mhadaily added the maintenance Related to the maintenance of the packages/repo label Dec 4, 2022
@mhadaily
Copy link
Contributor

This method was added to the latest Beta SDK version https://pub.dev/packages/nhost_sdk/versions/4.0.0-dev.9

You need to make sure anonymous sign-in is enabled via Nhost dashboard -> settings -> Sign-in methods -> Anonymous Users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Related to the maintenance of the packages/repo
Projects
None yet
Development

No branches or pull requests

3 participants