nhost / nhost-dart

Nhost Dart & Flutter packages

Home Page:https://nhost.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jijkbird opened this issue · comments

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

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

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

Have you added an AuthStore?

NhostClient(
    subdomain: subdomain,
    authStore: YOUR_AUTHSTORE_HERE
);