Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
fix: authts#580 add id_token_hint if present
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa committed Aug 31, 2022
1 parent a6ee4a6 commit 0a495bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/UserManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,13 @@ export class UserManager {
logger.throw(new Error("No silent_redirect_uri configured"));
}

const user = await this._loadUser();
const handle = await this._iframeNavigator.prepare({ silentRequestTimeoutInSeconds });
const navResponse = await this._signinStart({
request_type: "si:s", // this acts like a signin silent
redirect_uri: url,
prompt: "none",
id_token_hint: this.settings.includeIdTokenInSilentRenew ? user?.id_token : undefined,
response_type: this.settings.query_status_response_type,
scope: "openid",
skipUserInfo: true,
Expand Down

0 comments on commit 0a495bb

Please sign in to comment.