Skip to content

Commit

Permalink
Fix token_type of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
André Coelho committed Apr 3, 2017
1 parent bb6c55c commit a7ea4a4
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 @@ -95,7 +95,9 @@ function OAuthTokenProvider() {
*/

getTokenType() {
return this.getToken() ? this.getToken().token_type : undefined;
const { token_type } = this.getToken() || {};

return token_type;
}

/**
Expand Down

0 comments on commit a7ea4a4

Please sign in to comment.