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

persistent Auth Example broken #101

Open
chief-nerd opened this issue Feb 17, 2023 · 1 comment
Open

persistent Auth Example broken #101

chief-nerd opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@chief-nerd
Copy link

Flutter auth SDK seems to be broken

My Code (with go_router)
https://gist.github.com/chief-nerd/c5dc85a40c9f72040e7a4b6875189606
which is pretty much the code from
https://github.com/nhost/nhost-dart/blob/main/packages/nhost_flutter_auth/example/lib/persistent_auth_example.dart

I see on Web in my Chrome Application that the token is being put into store.
But when I do a reload of the application I am logged out again.

Do I need to call nhostClient.auth.signInWithStoredCredentials(); manually? Cause it's not called during init of the application??

@mhadaily
Copy link
Contributor

Hi,
Yes, There is an example here #91

I am, at the moment, creating a better way to handle this out of the box in the library; it'll come out as soon as we have a stable release. More examples are also on the way.

@mhadaily mhadaily self-assigned this Mar 13, 2023
@mhadaily mhadaily added the documentation Improvements or additions to documentation label Mar 13, 2023
@dbarrosop dbarrosop assigned onehassan and unassigned mhadaily Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants