Skip to content

Commit

Permalink
Do not initialise Idle twice (#583)
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 Jul 15, 2024
1 parent a99725f commit f6a8100
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 f6a8100

Please sign in to comment.