Last active
August 14, 2022 12:56
-
-
Save bhavishassai/7eff7b4a3c4d4505ec8246a5acb6446c to your computer and use it in GitHub Desktop.
checkIfLoggedIn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<User?> checkIfLoggedIn() async { | |
try { | |
_user = await _account.get(); | |
return _user; | |
} catch (e) { | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment