Skip to content

Commit f1bd93c

Browse files
author
André Coelho
committed
Fix access_token of undefined
1 parent ee05e4b commit f1bd93c

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
@@ -63,7 +63,9 @@ function OAuthTokenProvider() {
6363
*/
6464

6565
getAccessToken() {
66-
return this.getToken() ? this.getToken().access_token : undefined;
66+
const { access_token } = this.getToken() || {};
67+
68+
return access_token;
6769
}
6870

6971
/**

0 commit comments

Comments
 (0)