regenerateAuthClaims method

Future<void> regenerateAuthClaims(
  1. String userId
)

Implementation

Future<void> regenerateAuthClaims(String userId) {
  try {
    final callable =
        _functions.httpsCallable('callables-regenerateAuthClaims');
    return callable.call({
      'uid': userId,
    });
  } on FirebaseFunctionsException catch (e) {
    // Handling FirebaseFunctionsException
    throw UserDataServiceException.fromRdevException(e.toRdevException());
  } catch (e) {
    throw UserDataServiceException(message: e.toString());
  }
}