mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Added auth token to auth state
This commit is contained in:
@@ -57,7 +57,7 @@ export class AuthEffects {
|
||||
.ofType(AuthActionTypes.AUTHENTICATED)
|
||||
.switchMap((action: AuthenticatedAction) => {
|
||||
return this.authService.authenticatedUser(action.payload)
|
||||
.map((user: Eperson) => new AuthenticatedSuccessAction((user !== null), user))
|
||||
.map((user: Eperson) => new AuthenticatedSuccessAction((user !== null), action.payload, user))
|
||||
.catch((error) => Observable.of(new AuthenticatedErrorAction(error)));
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user