Class: FirebaseAuth::Auth
- Inherits:
-
Object
- Object
- FirebaseAuth::Auth
- Includes:
- Singleton
- Defined in:
- lib/firebase_auth.rb
Instance Method Summary collapse
-
#initialize ⇒ Auth
constructor
A new instance of Auth.
- #public_keys ⇒ Object
- #verify_id_token(id_token) ⇒ Object
Constructor Details
#initialize ⇒ Auth
Returns a new instance of Auth.
9 10 11 |
# File 'lib/firebase_auth.rb', line 9 def initialize refresh end |
Instance Method Details
#public_keys ⇒ Object
13 14 15 |
# File 'lib/firebase_auth.rb', line 13 def public_keys resolve { @public_keys } end |
#verify_id_token(id_token) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/firebase_auth.rb', line 17 def verify_id_token(id_token) result = resolve { @id_token_verifier.verify(id_token) } if result OpenStruct.new(result.payload) end end |