authenticate method
Call this method to get the Authenticated user.
Implementation
Future<Account?> authenticate() async {
if (_currentAuthCall == null) _currentAuthCall = performAuthenticate();
try {
var account = await _currentAuthCall;
_currentAuthCall = null;
return account;
} catch (Exception) {
_currentAuthCall = null;
throw Exception;
}
}