FirebaseAuthAdminException.fromServerError constructor

FirebaseAuthAdminException.fromServerError(
  1. DetailedApiRequestError error
)

Implementation

factory FirebaseAuthAdminException.fromServerError(
  auth1.DetailedApiRequestError error,
) {
  final code =
      _authServerToClientCode(error.message) ?? AuthClientErrorCode.unknown;
  return FirebaseAuthAdminException(code);
}