Skip to content

Commit a7ea4a4

Browse files
author
André Coelho
committed
Fix token_type of undefined
1 parent bb6c55c commit a7ea4a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/providers/oauth-token-provider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ function OAuthTokenProvider() {
9595
*/
9696

9797
getTokenType() {
98-
return this.getToken() ? this.getToken().token_type : undefined;
98+
const { token_type } = this.getToken() || {};
99+
100+
return token_type;
99101
}
100102

101103
/**

0 commit comments

Comments
 (0)