TokenRefreshRequestDetails constructor
TokenRefreshRequestDetails(
- Config config,
- String refreshToken
)
Implementation
TokenRefreshRequestDetails(Config config, String refreshToken)
: url = config.tokenUrl,
params = {
'client_id': config.clientId,
'scope': config.scope,
'redirect_uri': config.redirectUri,
'grant_type': 'refresh_token',
'refresh_token': refreshToken
},
headers = {
'Accept': 'application/json',
'Content-Type': Config.contentType,
if (config.origin != null) 'Origin': config.origin!,
} {
if (config.clientSecret != null) {
params.putIfAbsent('client_secret', () => config.clientSecret!);
}
}