Class: Firebase::Admin::Auth::IDTokenVerifier
- Inherits:
-
JWTVerifier
- Object
- JWTVerifier
- Firebase::Admin::Auth::IDTokenVerifier
- 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
- #expired_error ⇒ Object
-
#initialize(app) ⇒ IDTokenVerifier
constructor
Initializes a new [IDTokenVerifier].
- #invalid_error ⇒ Object
- #issuer ⇒ Object
Methods inherited from JWTVerifier
Constructor Details
#initialize(app) ⇒ IDTokenVerifier
Initializes a new [IDTokenVerifier].
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_error ⇒ Object
108 109 110 |
# File 'lib/firebase/admin/auth/token_verifier.rb', line 108 def expired_error ExpiredTokenError end |
#invalid_error ⇒ Object
104 105 106 |
# File 'lib/firebase/admin/auth/token_verifier.rb', line 104 def invalid_error InvalidTokenError end |
#issuer ⇒ Object
100 101 102 |
# File 'lib/firebase/admin/auth/token_verifier.rb', line 100 def issuer "https://securetoken.google.com/#{@project_id}" end |