Module: utils/auth

Authorization helpers

Source:

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

Source:
Returns:

Object with Basic-type Authorization header property

Type
object
Example
generateBasicAuthToken('abc123', 'xyz987')
// => { Authorization: 'Basic YWJjMTIzOnh5ejk4Nw==' }