Class: Peddler::LWAToken
- Inherits:
-
Data
- Object
- Data
- Peddler::LWAToken
- Defined in:
- sig/peddler/lwa_token.rbs
Overview
Login with Amazon (LWA) OAuth 2.0 token response
This type represents the response from Amazon's token endpoint for all grant types: - authorization_code: Returns access_token, refresh_token, token_type, expires_in - refresh_token: Returns access_token, token_type, expires_in (refresh_token rarely included) - client_credentials: Returns access_token, token_type, expires_in, scope
Class Method Summary collapse
Instance Method Summary collapse
-
#access_token ⇒ String
The access token used to authenticate SP-API requests.
-
#expires_in ⇒ Integer?
Number of seconds until the access token expires (typically 3600).
-
#refresh_token ⇒ String?
The refresh token (present for authorization_code grant, rarely for refresh_token grant).
-
#scope ⇒ String?
The scope granted (only present for client_credentials grant).
-
#token_type ⇒ String
The token type (always "bearer").
Class Method Details
.parse ⇒ LWAToken
26 |
# File 'sig/peddler/lwa_token.rbs', line 26
def self.parse: (untyped value) -> LWAToken
|
Instance Method Details
#access_token ⇒ String
The access token used to authenticate SP-API requests
12 |
# File 'sig/peddler/lwa_token.rbs', line 12
def access_token: () -> String
|
#expires_in ⇒ Integer?
Number of seconds until the access token expires (typically 3600)
18 |
# File 'sig/peddler/lwa_token.rbs', line 18
def expires_in: () -> Integer?
|
#refresh_token ⇒ String?
The refresh token (present for authorization_code grant, rarely for refresh_token grant)
21 |
# File 'sig/peddler/lwa_token.rbs', line 21
def refresh_token: () -> String?
|
#scope ⇒ String?
The scope granted (only present for client_credentials grant)
24 |
# File 'sig/peddler/lwa_token.rbs', line 24
def scope: () -> String?
|
#token_type ⇒ String
The token type (always "bearer")
15 |
# File 'sig/peddler/lwa_token.rbs', line 15
def token_type: () -> String
|