Skip to content

Commit

Permalink
Update from toast to alert for expired token
Browse files Browse the repository at this point in the history
  • Loading branch information
limcaaarl committed Nov 12, 2024
1 parent 78399a6 commit d841133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/_services/authentication.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class AuthenticationService extends ApiService {
const timeLeft = tokenExpirationTime - now;

if (timeLeft <= 0) {
this.toastService.showToast('Your session has expired. Please log in again.');
alert('Your session has expired. Please log in again.');
this.logout();
} else if (timeLeft < 5 * oneMinute) {
this.toastService.showToast('Your session will expire in less than 5 minutes. Please log in again');
Expand Down

0 comments on commit d841133

Please sign in to comment.