Class: AppleAuth::JWTDecoder

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#jwtObject (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

#callObject



13
14
15
# File 'lib/apple_auth/helpers/jwt_decoder.rb', line 13

def call
  decoded.first
end