Class: AppleID::AccessToken

Inherits:
OpenIDConnect::AccessToken
  • Object
show all
Includes:
AppleID::API::UserMigration
Defined in:
lib/apple_id/access_token.rb

Instance Method Summary collapse

Methods included from AppleID::API::UserMigration

#transfer_from!, #transfer_to!

Constructor Details

#initialize(access_token, attributes = {}) ⇒ AccessToken

Returns a new instance of AccessToken.



6
7
8
9
# File 'lib/apple_id/access_token.rb', line 6

def initialize(access_token, attributes = {})
  super attributes.merge(access_token: access_token)
  self.id_token = IdToken.decode(id_token) if id_token.present?
end