nhost / nhost-dart

Nhost Dart & Flutter packages
https://nhost.io
MIT License
90 stars 32 forks source link

How to save login status? When I log in and restart the application, the login status disappears #103

Closed jijkbird closed 1 year ago

jijkbird commented 1 year ago

How to save login status? When I log in and restart the application, the login status disappears,in flutter

jijkbird commented 1 year ago

AuthResponse authResponse = await nhost.auth.signInEmailPassword( email: "191439366@qq.com", password: "123456789"); print(nhost.auth.authenticationState);

szilarddoro commented 1 year ago

I'm transferring this issue to our Nhost Dart repository.

totzk9 commented 1 year ago

Have you added an AuthStore?

NhostClient(
    subdomain: subdomain,
    authStore: YOUR_AUTHSTORE_HERE
);