Skip to content

Commit bb6c55c

Browse files
author
André Coelho
committed
Fix refresh_token of undefined
1 parent f1bd93c commit bb6c55c

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
@@ -85,7 +85,9 @@ function OAuthTokenProvider() {
8585
*/
8686

8787
getRefreshToken() {
88-
return this.getToken() ? this.getToken().refresh_token : undefined;
88+
const { refresh_token } = this.getToken() || {};
89+
90+
return refresh_token;
8991
}
9092

9193
/**

0 commit comments

Comments
 (0)