FirebaseTokenVerifier constructor

FirebaseTokenVerifier({
  1. required Uri clientCertUrl,
  2. required Uri issuer,
  3. required FirebaseTokenInfo tokenInfo,
  4. required FirebaseAdminApp app,
})

Implementation

FirebaseTokenVerifier({
  required Uri clientCertUrl,
  required this.issuer,
  required this.tokenInfo,
  required this.app,
})  : _shortNameArticle = RegExp('[aeiou]', caseSensitive: false)
              .hasMatch(tokenInfo.shortName[0])
          ? 'an'
          : 'a',
      _signatureVerifier =
          PublicKeySignatureVerifier.withCertificateUrl(clientCertUrl);