Module: FirebaseTokenAuthentication
- Defined in:
- lib/firebase_token_authentication.rb,
lib/firebase_token_authentication/version.rb,
lib/firebase_token_authentication/access_token.rb,
lib/firebase_token_authentication/configuration.rb,
lib/firebase_token_authentication/google_x509_certificate.rb
Defined Under Namespace
Classes: AccessToken, Configuration, Error, GoogleX509Certificate
Constant Summary
collapse
- VERSION =
"0.1.5"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
16
17
18
|
# File 'lib/firebase_token_authentication.rb', line 16
def config
@config ||= Configuration.new
end
|
20
21
22
|
# File 'lib/firebase_token_authentication.rb', line 20
def configure
yield(config)
end
|
.verify_access_token(firebase_token) ⇒ Object
12
13
14
|
# File 'lib/firebase_token_authentication.rb', line 12
def verify_access_token(firebase_token)
AccessToken.new(firebase_token).verify
end
|