Method: OAuth2::AccessToken.from_kvform

Defined in:
lib/oauth2/access_token.rb

.from_kvform(client, kvform) ⇒ AccessToken

Initializes an AccessToken from a key/value application/x-www-form-urlencoded string

Parameters:

  • client (Client)

    the OAuth2::Client instance

  • kvform (String)

    the application/x-www-form-urlencoded string

Returns:



90
91
92
# File 'lib/oauth2/access_token.rb', line 90

def from_kvform(client, kvform)
  from_hash(client, Rack::Utils.parse_query(kvform))
end