Skip to content

Commit

Permalink
fix(js): refresh access token without a resource should return id token
Browse files Browse the repository at this point in the history
refresh access token without a resource should return id token
  • Loading branch information
simeng-li committed Jun 27, 2022
1 parent 926c74f commit 05d34d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export default class LogtoClient {
tokenEndpoint,
refreshToken: this.refreshToken,
resource,
scopes: ['offline_access'], // Force remove openid scope from the request
scopes: resource ? ['offline_access'] : undefined, // Force remove openid scope from the request
},
this.requester
);
Expand Down

0 comments on commit 05d34d6

Please sign in to comment.