Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@brianstorti brianstorti released this 16 Sep 12:43
· 39 commits to master since this release
d671ec0

In this release, the reward passed to the onRedeem callback is jwt-encoded with your OAuth application secret, instead of your API Key.

If you're upgrading from version 2.5.3, you'll need to update your onRedeem callback as follows:

// version 2.5.3
onRedeem: function(rewardEncodedWithApiKey, rewardEncodedWithOauthAppSecret) {
}

// version 3.0.0
onRedeem: function(rewardEncodedWithOauthAppSecret) {
  // reward encoded with api key won't be provided anylonger.
}

For versions earlier than 2.5.3, the callback's first (and only) parameter will now be the reward encoded with the OAuth app secret:

// version <= 2.5.2 
onRedeem: function(rewardEncodedWithApiKey) {
}

// version 3.0.0
onRedeem: function(rewardEncodedWithOauthAppSecret) {
}