Skip to content

Commit

Permalink
clear session for non authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Feb 23, 2024
1 parent 21ea560 commit ac19cc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AuthExpiredInterceptor implements HttpInterceptor {
return next.handle(request).pipe(
tap({
error: (err: HttpErrorResponse) => {
if (err.status === 401 && err.url && !err.url.includes('api/account') && this.accountService.isAuthenticated()) {
if (err.status === 401 && err.url && !err.url.includes('api/account')) {
<%_ if (authenticationTypeSession) { _%>
if (err.url.includes(this.loginService.logoutUrl())) {
this.loginService.logoutInClient();
Expand Down

0 comments on commit ac19cc7

Please sign in to comment.