Class: Firebase::Admin::Auth::IDTokenVerifier

Inherits:
JWTVerifier
  • Object
show all
Defined in:
lib/firebase/admin/auth/token_verifier.rb

Overview

Verifier for Firebase ID tokens.

Constant Summary collapse

CERTIFICATES_URI =
"https://www.googleapis.com/robot/v1/metadata/x509/[email protected]"

Instance Method Summary collapse

Methods inherited from JWTVerifier

#verify

Constructor Details

#initialize(app) ⇒ IDTokenVerifier

Initializes a new [IDTokenVerifier].

Parameters:



96
97
98
# File 'lib/firebase/admin/auth/token_verifier.rb', line 96

def initialize(app)
  super(app, CERTIFICATES_URI)
end

Instance Method Details

#expired_errorObject



108
109
110
# File 'lib/firebase/admin/auth/token_verifier.rb', line 108

def expired_error
  ExpiredTokenError
end

#invalid_errorObject



104
105
106
# File 'lib/firebase/admin/auth/token_verifier.rb', line 104

def invalid_error
  InvalidTokenError
end

#issuerObject



100
101
102
# File 'lib/firebase/admin/auth/token_verifier.rb', line 100

def issuer
  "https://securetoken.google.com/#{@project_id}"
end