Skip to content

Commit

Permalink
Do not initialise Idle twice
Browse files Browse the repository at this point in the history
When reloading the page, initIdle() is called twice, which causes two onTimeout subscription.
This causes problems when loading the KC logout page, because the id_token_hint parameter isn't passed.
  • Loading branch information
askask committed Jun 20, 2024
1 parent 664270f commit 027c94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class AuthService {
.toPromise()
.finally(() => {
if (!this.idle.isIdling()) {
this.initIdle()
this.resetIdle()
}
})
}
Expand Down

0 comments on commit 027c94f

Please sign in to comment.