FirebaseTokenInfo constructor
FirebaseTokenInfo({
- required Uri url,
- required String verifyApiName,
- required String jwtName,
- required String shortName,
- 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.',
);
}
}