mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
if check of Authentication Cookie succeed store token
This commit is contained in:
@@ -99,6 +99,7 @@ export class AuthEffects {
|
||||
return this.authService.checkAuthenticationCookie().pipe(
|
||||
map((response: AuthStatus) => {
|
||||
if (response.authenticated) {
|
||||
this.authService.storeToken(response.token);
|
||||
return new AuthenticatedAction(response.token);
|
||||
} else {
|
||||
return new RetrieveAuthMethodsAction(response);
|
||||
|
Reference in New Issue
Block a user