mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
Removed use of platform service and created different service for SSR and CSR
This commit is contained in:
@@ -71,7 +71,7 @@ export class AuthEffects {
|
||||
public checkToken: Observable<Action> = this.actions$
|
||||
.ofType(AuthActionTypes.CHECK_AUTHENTICATION_TOKEN)
|
||||
.switchMap(() => {
|
||||
return this.authService.checkAuthenticationToken()
|
||||
return this.authService.hasValidAuthenticationToken()
|
||||
.map((token: AuthTokenInfo) => new AuthenticatedAction(token))
|
||||
.catch((error) => Observable.of(new CheckAuthenticationTokenErrorAction()));
|
||||
});
|
||||
|
Reference in New Issue
Block a user