refreshCurrentUserToken method

Future<IdTokenResult?> refreshCurrentUserToken({
  1. bool force = false,
})

Implementation

Future<IdTokenResult?> refreshCurrentUserToken({bool force = false}) async {
  try {
    return _auth.currentUser?.getIdTokenResult(force);
  } catch (err) {
    if (err is AuthDataServiceException) {
      rethrow;
    }
    throw AuthDataServiceException(
      message: err.toString(),
    );
  }
}