Added auth token to auth state

This commit is contained in:
Giuseppe Digilio
2018-04-10 15:20:28 +02:00
parent 1f953b6b9d
commit 04be7170c3
5 changed files with 44 additions and 16 deletions

View File

@@ -75,11 +75,12 @@ export class AuthenticatedSuccessAction implements Action {
public type: string = AuthActionTypes.AUTHENTICATED_SUCCESS;
payload: {
authenticated: boolean;
authToken: AuthTokenInfo;
user: Eperson
};
constructor(authenticated: boolean, user: Eperson) {
this.payload = { authenticated, user };
constructor(authenticated: boolean, authToken: AuthTokenInfo, user: Eperson) {
this.payload = { authenticated, authToken, user };
}
}