Class: AppleAuth::JWTDecoder
- Inherits:
-
Object
- Object
- AppleAuth::JWTDecoder
- Defined in:
- lib/apple_auth/helpers/jwt_decoder.rb
Constant Summary collapse
- APPLE_KEY_URL =
'https://appleid.apple.com/auth/keys'.freeze
Instance Attribute Summary collapse
-
#jwt ⇒ Object
readonly
Returns the value of attribute jwt.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(jwt) ⇒ JWTDecoder
constructor
A new instance of JWTDecoder.
Constructor Details
#initialize(jwt) ⇒ JWTDecoder
Returns a new instance of JWTDecoder.
9 10 11 |
# File 'lib/apple_auth/helpers/jwt_decoder.rb', line 9 def initialize(jwt) @jwt = jwt end |
Instance Attribute Details
#jwt ⇒ Object (readonly)
Returns the value of attribute jwt.
7 8 9 |
# File 'lib/apple_auth/helpers/jwt_decoder.rb', line 7 def jwt @jwt end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/apple_auth/helpers/jwt_decoder.rb', line 13 def call decoded.first end |