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 }) +);