reloadCurrentUser method
Implementation
Future<User> reloadCurrentUser() async {
try {
if (_auth.currentUser is User) {
await _auth.currentUser!.reload();
return _auth.currentUser!;
} else {
throw AuthDataServiceException(
message: 'No current user',
code: RdevCode.NotFound,
);
}
} catch (err) {
if (err is AuthDataServiceException) {
rethrow;
}
throw AuthDataServiceException(
message: err.toString(),
);
}
}