isAuthenticated method
Returns AuthToken
if user is authenticated
Throws AuthException
with NO_AUTH_USER
error
code if no user is authenticated
Implementation
Future<AuthToken> isAuthenticated() async {
try {
final _token = await _authApi.getAuthTokenFromCache();
return _token;
} on AuthException catch (e) {
rethrow;
}
}