Skip to content

Commit

Permalink
Fix refresh_token of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
André Coelho committed Apr 3, 2017
1 parent f1bd93c commit bb6c55c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/oauth-token-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ function OAuthTokenProvider() {
*/

getRefreshToken() {
return this.getToken() ? this.getToken().refresh_token : undefined;
const { refresh_token } = this.getToken() || {};

return refresh_token;
}

/**
Expand Down

0 comments on commit bb6c55c

Please sign in to comment.