fix(authentication): try/catch on cache retrieve
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
873a3b426d
commit
ef19191093
@ -41,6 +41,7 @@ class AuthenticationFirebaseCacheDataSourceImpl<Data>
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
final jwt = await currentUser.getIdToken(true);
|
||||
final currentAccount = AccountModel.fromFirebaseUser(
|
||||
currentUser,
|
||||
@ -48,6 +49,9 @@ class AuthenticationFirebaseCacheDataSourceImpl<Data>
|
||||
);
|
||||
|
||||
return currentAccount;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Already done by Firebase
|
||||
|
Loading…
x
Reference in New Issue
Block a user