Skip to content

Commit

Permalink
Release 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroMachado committed Aug 2, 2017
1 parent 705e7cc commit 633869b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [v2.0.2](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.0.2) (2017-08-02)
- Fix `getToken()` method [\#6](https://github.com/uphold/uphold-sdk-javascript/pull/6) ([SandroMachado](https://github.com/SandroMachado))

## [v2.0.1](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.0.1) (2017-06-01)
- Add destination argument to createCardTransation action method [\#5](https://github.com/uphold/uphold-sdk-javascript/pull/5) ([ricardogama](https://github.com/ricardogama))

Expand Down
2 changes: 1 addition & 1 deletion dist/browser/uphold-sdk-javascript.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/core/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ class SDK {

getToken() {
return this.storage.getItem(this.options.accessTokenKey).then(access_token => {
if (!access_token) {
this.tokenRequestPromise = null;

return Promise.reject();
}

return this.storage.getItem(this.options.refreshTokenKey).then(refresh_token => ({
access_token: access_token,
refresh_token: refresh_token
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uphold/uphold-sdk-javascript",
"version": "2.0.1",
"version": "2.0.2",
"description": "Uphold SDK for JavasScript",
"keywords": [
"api",
Expand Down

0 comments on commit 633869b

Please sign in to comment.