From da062b071d3713534537df3a7c3d6c5ac5732d93 Mon Sep 17 00:00:00 2001 From: Mike Ryan Date: Sat, 28 Mar 2020 20:18:41 -0500 Subject: [PATCH] 16-auth-api-actions --- src/app/auth/actions/auth-api.actions.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/app/auth/actions/auth-api.actions.ts b/src/app/auth/actions/auth-api.actions.ts index 61d53a2..3715724 100644 --- a/src/app/auth/actions/auth-api.actions.ts +++ b/src/app/auth/actions/auth-api.actions.ts @@ -1,2 +1,17 @@ import { createAction } from "@ngrx/store"; import { UserModel } from "src/app/shared/models"; + +export const getAuthStatusSuccess = createAction( + "[Auth/API] Get Auth Status Success", + (user: UserModel | null) => ({ user }) +); + +export const loginSuccess = createAction( + "[Auth/API] Login Success", + (user: UserModel) => ({ user }) +); + +export const loginFailure = createAction( + "[Auth/API] Login Failure", + (reason: string) => ({ reason }) +);