From 6801194cbb6aa83f6f34675955539b7c96544cb4 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Wed, 8 Jan 2020 18:25:15 +0100 Subject: [PATCH] if check of Authentication Cookie succeed store token --- src/app/core/auth/auth.effects.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/core/auth/auth.effects.ts b/src/app/core/auth/auth.effects.ts index 5d58e8f752..b1df74cd33 100644 --- a/src/app/core/auth/auth.effects.ts +++ b/src/app/core/auth/auth.effects.ts @@ -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);