isAuthenticated method
Check if a user is currently authenticated
Example:
if (db.auth.isAuthenticated()) {
print('User is logged in');
}
Implementation
bool isAuthenticated() => _token != null && _token!.isNotEmpty;
Check if a user is currently authenticated
Example:
if (db.auth.isAuthenticated()) {
print('User is logged in');
}
bool isAuthenticated() => _token != null && _token!.isNotEmpty;