Skip to content

Commit 633869b

Browse files
committed
Release 2.0.2
1 parent 705e7cc commit 633869b

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## [v2.0.2](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.0.2) (2017-08-02)
4+
- Fix `getToken()` method [\#6](https://github.com/uphold/uphold-sdk-javascript/pull/6) ([SandroMachado](https://github.com/SandroMachado))
5+
36
## [v2.0.1](https://github.com/uphold/uphold-sdk-javascript/releases/tag/v2.0.1) (2017-06-01)
47
- Add destination argument to createCardTransation action method [\#5](https://github.com/uphold/uphold-sdk-javascript/pull/5) ([ricardogama](https://github.com/ricardogama))
58

dist/browser/uphold-sdk-javascript.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core/sdk.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ class SDK {
9595

9696
getToken() {
9797
return this.storage.getItem(this.options.accessTokenKey).then(access_token => {
98+
if (!access_token) {
99+
this.tokenRequestPromise = null;
100+
101+
return Promise.reject();
102+
}
103+
98104
return this.storage.getItem(this.options.refreshTokenKey).then(refresh_token => ({
99105
access_token: access_token,
100106
refresh_token: refresh_token

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uphold/uphold-sdk-javascript",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Uphold SDK for JavasScript",
55
"keywords": [
66
"api",

0 commit comments

Comments
 (0)