FirebaseTokenInfo constructor

FirebaseTokenInfo({
  1. required Uri url,
  2. required String verifyApiName,
  3. required String jwtName,
  4. required String shortName,
  5. required AuthClientErrorCode expiredErrorCode,
})

Implementation

FirebaseTokenInfo({
  required this.url,
  required this.verifyApiName,
  required this.jwtName,
  required this.shortName,
  required this.expiredErrorCode,
}) {
  if (verifyApiName.isEmpty) {
    throw FirebaseAuthAdminException(
      AuthClientErrorCode.invalidArgument,
      'The JWT verify API name must be a non-empty string.',
    );
  }
  if (jwtName.isEmpty) {
    throw FirebaseAuthAdminException(
      AuthClientErrorCode.invalidArgument,
      'The JWT public full name must be a non-empty string.',
    );
  }
  if (shortName.isEmpty) {
    throw FirebaseAuthAdminException(
      AuthClientErrorCode.invalidArgument,
      'The JWT public full name must be a non-empty string.',
    );
  }
}