Skip to content

Commit

Permalink
Merge pull request #1227 from ORCID/improve-expired-authorization-int…
Browse files Browse the repository at this point in the history
…erceptor

improve expired authorization interceptor
  • Loading branch information
bobcaprice authored Jun 14, 2024
2 parents e595b07 + 9a91958 commit c6b5980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/error/service/error.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class ErrorService implements ErrorHandler {
) {}
handleError(error: any) {
console.log(error)
if (error instanceof HttpErrorResponse) {
if (error instanceof HttpErrorResponse || error.name === 'HttpErrorResponse') {
if (error.status === 401) {
if (this.loginService.isAuthenticated()) {
this.loginService.logoutDirectly()
Expand Down

0 comments on commit c6b5980

Please sign in to comment.