add delay before check
This commit is contained in:
parent
4467da83b9
commit
27b484ea6d
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ class _AuthCheckState extends State<AuthCheck> {
|
||||||
late Future<bool> signedIn;
|
late Future<bool> signedIn;
|
||||||
|
|
||||||
Future<bool> doesSessionExist() async {
|
Future<bool> doesSessionExist() async {
|
||||||
|
//wait
|
||||||
|
await Future.delayed(const Duration(seconds: 1));
|
||||||
return await SuperTokens.doesSessionExist();
|
return await SuperTokens.doesSessionExist();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue