Authorization helpers
- Copyright:
- 2015–2020 RewardOps Inc.
Methods
# inner generateBasicAuthToken(clientId, clientSecret) → {object}
Generate Basic
-type header authorization token for RewardOps API
Parameters:
Name | Type | Description |
---|---|---|
clientId |
string
|
RewardOps API client ID |
clientSecret |
string
|
RewardOps API client secret |
Object with Basic
-type Authorization
header property
object
Example
generateBasicAuthToken('abc123', 'xyz987')
// => { Authorization: 'Basic YWJjMTIzOnh5ejk4Nw==' }