mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Added redirect to login whether token is expired
This commit is contained in:
@@ -134,6 +134,7 @@ export class AuthEffects {
|
||||
@Effect({dispatch: false})
|
||||
public redirectToLogin: Observable<Action> = this.actions$
|
||||
.ofType(AuthActionTypes.REDIRECT_TOKEN_EXPIRED, AuthActionTypes.REDIRECT_AUTHENTICATION_REQUIRED)
|
||||
.do(() => this.authService.removeToken())
|
||||
.do(() => this.authService.redirectToLogin());
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user