Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
urmikgov committed Mar 12, 2024
1 parent bb7ec45 commit 931f0a5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export class AuthenticationService {
async refreshTokens(redirect = true) {
if (this.refreshToken) {
if (this.refreshExpires && this.refreshExpires < Date.now()) {
await this.router.navigateByUrl('/login');
if (redirect) {
await this.router.navigateByUrl('/login');
}
return;
}
const newTokens = await this.getNewTokens(this.refreshToken);
Expand Down

0 comments on commit 931f0a5

Please sign in to comment.