@daffodil/auth 0.57.0 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/driver/public_api.d.ts +1 -0
  2. package/driver/services/auth-check.service.d.ts +17 -0
  3. package/driver/services/public_api.d.ts +1 -0
  4. package/errors/codes.enum.d.ts +3 -0
  5. package/errors/map.d.ts +7 -0
  6. package/errors/missing-token.d.ts +10 -0
  7. package/errors/public_api.d.ts +3 -0
  8. package/esm2020/driver/public_api.mjs +2 -1
  9. package/esm2020/driver/services/auth-check.service.mjs +38 -0
  10. package/esm2020/driver/services/public_api.mjs +2 -0
  11. package/esm2020/errors/codes.enum.mjs +5 -0
  12. package/esm2020/errors/map.mjs +9 -0
  13. package/esm2020/errors/missing-token.mjs +14 -0
  14. package/esm2020/errors/public_api.mjs +4 -0
  15. package/esm2020/public_api.mjs +2 -1
  16. package/esm2020/routing/config/default.mjs +2 -1
  17. package/esm2020/routing/config/interface.mjs +1 -1
  18. package/esm2020/routing/effects/redirect.effects.mjs +13 -5
  19. package/esm2020/routing/guards/guest-only.guard.mjs +28 -15
  20. package/esm2020/routing/guards/member-only.guard.mjs +28 -15
  21. package/esm2020/state/actions/auth.actions.mjs +11 -40
  22. package/esm2020/state/actions/reset-password.actions.mjs +3 -2
  23. package/esm2020/state/effects/auth.effects.mjs +22 -23
  24. package/esm2020/state/effects/login.effects.mjs +7 -7
  25. package/esm2020/state/effects/register.effects.mjs +3 -3
  26. package/esm2020/state/effects/reset-password.effects.mjs +3 -3
  27. package/esm2020/state/reducers/auth/auth.reducer.mjs +11 -4
  28. package/fesm2015/daffodil-auth-driver.mjs +40 -2
  29. package/fesm2015/daffodil-auth-driver.mjs.map +1 -1
  30. package/fesm2015/daffodil-auth-routing.mjs +63 -31
  31. package/fesm2015/daffodil-auth-routing.mjs.map +1 -1
  32. package/fesm2015/daffodil-auth-state.mjs +52 -77
  33. package/fesm2015/daffodil-auth-state.mjs.map +1 -1
  34. package/fesm2015/daffodil-auth.mjs +26 -2
  35. package/fesm2015/daffodil-auth.mjs.map +1 -1
  36. package/fesm2020/daffodil-auth-driver.mjs +38 -2
  37. package/fesm2020/daffodil-auth-driver.mjs.map +1 -1
  38. package/fesm2020/daffodil-auth-routing.mjs +62 -30
  39. package/fesm2020/daffodil-auth-routing.mjs.map +1 -1
  40. package/fesm2020/daffodil-auth-state.mjs +55 -77
  41. package/fesm2020/daffodil-auth-state.mjs.map +1 -1
  42. package/fesm2020/daffodil-auth.mjs +26 -2
  43. package/fesm2020/daffodil-auth.mjs.map +1 -1
  44. package/package.json +3 -3
  45. package/public_api.d.ts +1 -0
  46. package/routing/config/interface.d.ts +5 -0
  47. package/routing/effects/redirect.effects.d.ts +3 -1
  48. package/routing/guards/guest-only.guard.d.ts +9 -5
  49. package/routing/guards/member-only.guard.d.ts +9 -5
  50. package/state/actions/auth.actions.d.ts +8 -34
  51. package/state/actions/reset-password.actions.d.ts +2 -0
  52. package/state/effects/auth.effects.d.ts +10 -9
  53. package/state/effects/login.effects.d.ts +4 -4
  54. package/state/effects/register.effects.d.ts +2 -1
  55. package/state/effects/reset-password.effects.d.ts +2 -2
  56. package/state/reducers/auth/auth.reducer.d.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-auth-state.mjs","sources":["../../../libs/auth/state/src/actions/auth.actions.ts","../../../libs/auth/state/src/actions/login.actions.ts","../../../libs/auth/state/src/actions/register.actions.ts","../../../libs/auth/state/src/actions/reset-password.actions.ts","../../../libs/auth/state/src/reducers/auth/auth-initial-state.ts","../../../libs/auth/state/src/reducers/auth/auth.reducer.ts","../../../libs/auth/state/src/reducers/login/login-initial-state.ts","../../../libs/auth/state/src/reducers/login/login.reducer.ts","../../../libs/auth/state/src/reducers/register/register-initial-state.ts","../../../libs/auth/state/src/reducers/register/register.reducer.ts","../../../libs/auth/state/src/reducers/reset-password/initial-state.ts","../../../libs/auth/state/src/reducers/reset-password/reducer.ts","../../../libs/auth/state/src/reducers/auth-store-feature-key.ts","../../../libs/auth/state/src/reducers/auth-reducers.ts","../../../libs/auth/state/src/selectors/auth-feature.selector.ts","../../../libs/auth/state/src/selectors/auth/auth.selector.ts","../../../libs/auth/state/src/selectors/login/login.selector.ts","../../../libs/auth/state/src/selectors/register/register.selector.ts","../../../libs/auth/state/src/selectors/reset-password/selector.ts","../../../libs/auth/state/src/selectors/auth-all.selector.ts","../../../libs/auth/state/src/facades/auth/facade.ts","../../../libs/auth/state/src/facades/login/facade.ts","../../../libs/auth/state/src/facades/register/facade.ts","../../../libs/auth/state/src/facades/reset-password/facade.ts","../../../libs/auth/state/src/config/default.ts","../../../libs/auth/state/src/config/token.ts","../../../libs/auth/state/src/effects/auth.effects.ts","../../../libs/auth/state/src/effects/login.effects.ts","../../../libs/auth/state/src/effects/register.effects.ts","../../../libs/auth/state/src/effects/reset-password.effects.ts","../../../libs/auth/state/src/auth-state.module.ts","../../../libs/auth/state/src/daffodil-auth-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthActionTypes {\n AuthGuardCheckAction = '[@daffodil/auth] Auth Guard Check Action',\n AuthGuardCheckCompletionAction = '[@daffodil/auth] Auth Guard Check Completion Action',\n AuthStorageFailureAction = '[@daffodil/auth] Auth Storage Failure Action',\n AuthServerSideAction = '[@daffodil/auth] Auth Server Side Action',\n AuthCheckAction = '[@daffodil/auth] Auth Check Action',\n AuthCheckSuccessAction = '[@daffodil/auth] Auth Check Success Action',\n AuthCheckFailureAction = '[@daffodil/auth] Auth Check Failure Action',\n AuthCompleteAction = '[@daffodil/auth] Auth Complete Action',\n AuthRevokeAction = '[@daffodil/auth] Auth Revoke Action',\n}\n\n/**\n * An action triggered by guards to initialize an auth check request.\n */\nexport class DaffAuthGuardCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckAction;\n}\n\n/**\n * An action triggered on the completion of a guard token check.\n */\nexport class DaffAuthGuardCheckCompletion implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardCheckCompletionAction;\n\n constructor(public result: boolean) {}\n}\n\n/*\n * An action triggered upon a failed auth storage operation.\n */\nexport class DaffAuthStorageFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthStorageFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/*\n * An action triggered when an invalid operation is performed in the server environment.\n * A common example is trying to access the auth token from storage.\n */\nexport class DaffAuthServerSide implements Action {\n readonly type = DaffAuthActionTypes.AuthServerSideAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize an auth check request.\n */\nexport class DaffAuthCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckAction;\n}\n\n/**\n * An action triggered upon a successful auth check.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthCheckSuccess implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckSuccessAction;\n}\n\n/**\n * An action triggered upon a failed auth check request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthCheckFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered when the user authentication flow is completed.\n * The auth token is in storage at this point.\n */\nexport class DaffAuthComplete implements Action {\n readonly type = DaffAuthActionTypes.AuthCompleteAction;\n}\n\n/**\n * An action triggered when the user auth token is revoked.\n * The auth token has been removed from storage at this point.\n */\nexport class DaffAuthRevoke implements Action {\n readonly type = DaffAuthActionTypes.AuthRevokeAction;\n}\n\nexport type DaffAuthActions =\n | DaffAuthGuardCheckCompletion\n | DaffAuthGuardCheck\n | DaffAuthStorageFailure\n | DaffAuthServerSide\n | DaffAuthCheck\n | DaffAuthCheckSuccess\n | DaffAuthCheckFailure\n | DaffAuthComplete\n | DaffAuthRevoke;\n","import { Action } from '@ngrx/store';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthLoginActionTypes {\n LoginAction = '[@daffodil/auth] Login Action',\n LoginSuccessAction = '[@daffodil/auth] Login Success Action',\n LoginFailureAction = '[@daffodil/auth] Login Failure Action',\n LogoutAction = '[@daffodil/auth] Logout Action',\n LogoutSuccessAction = '[@daffodil/auth] Logout Success Action',\n LogoutFailureAction = '[@daffodil/auth] Logout Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth login request.\n */\nexport class DaffAuthLogin<T extends DaffLoginInfo = DaffLoginInfo> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginAction;\n\n constructor(public loginInfo: T) {}\n}\n\n/**\n * An action triggered upon a successful auth login.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLoginSuccess<T extends DaffAuthToken = DaffAuthToken> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginSuccessAction;\n\n constructor(public auth: T) {}\n}\n\n/**\n * An action triggered upon a failed auth login request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLoginFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffAuthLogout implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutAction;\n}\n\n/**\n * An action triggered upon a successful logout.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLogoutSuccess implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLogoutFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthLoginActions<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> =\n | DaffAuthLogin<T>\n | DaffAuthLoginSuccess<U>\n | DaffAuthLoginFailure\n | DaffAuthLogout\n | DaffAuthLogoutSuccess\n | DaffAuthLogoutFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthRegisterActionTypes {\n RegisterAction = '[@daffodil/auth] Register Action',\n RegisterSuccessAction = '[@daffodil/auth] Register Success Action',\n RegisterFailureAction = '[@daffodil/auth] Register Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth register request.\n *\n * @param registration\n */\nexport class DaffAuthRegister<T extends DaffAccountRegistration = DaffAccountRegistration> implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterAction;\n\n constructor(public registration: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful auth register request.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthRegisterSuccess implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterSuccessAction;\n\n constructor(public token?: string) {}\n}\n\n/**\n * An action triggered upon a failed auth request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthRegisterFailure implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthRegisterActions<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> =\n | DaffAuthRegister<T>\n | DaffAuthRegisterSuccess\n | DaffAuthRegisterFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthResetPasswordActionTypes {\n SendResetEmailAction = '[@daffodil/auth] Send Reset Email Action',\n SendResetEmailSuccessAction = '[@daffodil/auth] Send Reset Email Success Action',\n SendResetEmailFailureAction = '[@daffodil/auth] Send Reset Email Failure Action',\n ResetPasswordAction = '[@daffodil/auth] Reset Password Action',\n ResetPasswordSuccessAction = '[@daffodil/auth] Reset Password Success Action',\n ResetPasswordFailureAction = '[@daffodil/auth] Reset Password Failure Action',\n ResetPasswordLandingAction = '[@daffodil/auth] Reset Password Landing Action',\n}\n\n/**\n * An action triggered to send the specified customer an email to reset their password.\n */\nexport class DaffSendResetEmail implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailAction;\n\n constructor(public email: string) {}\n}\n\n/**\n * An action triggered upon a successfully sent reset password email.\n */\nexport class DaffSendResetEmailSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction;\n}\n\n/**\n * An action triggered upon a failure to send the reset password email.\n *\n * @param errorMessage - an error message\n */\nexport class DaffSendResetEmailFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffResetPassword<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordAction;\n\n constructor(public info: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful logout.\n */\nexport class DaffResetPasswordSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffResetPasswordFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered upon the user navigating to the reset password page from the link in their email.\n *\n * @param token - The token with which the password can be reset\n */\nexport class DaffResetPasswordLanding implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction;\n\n constructor(public token: DaffAuthResetPasswordInfo['token']) {}\n}\n\nexport type DaffAuthResetPasswordActions<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> =\n | DaffSendResetEmail\n | DaffSendResetEmailSuccess\n | DaffSendResetEmailFailure\n | DaffResetPassword<T>\n | DaffResetPasswordSuccess\n | DaffResetPasswordFailure\n | DaffResetPasswordLanding;\n","import { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport const daffAuthInitialState: DaffAuthReducerState = {\n loading: false,\n errors: [],\n loggedIn: false,\n};\n","import {\n DaffAuthActionTypes,\n DaffAuthActions,\n} from '../../actions/public_api';\nimport { daffAuthInitialState } from './auth-initial-state';\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport function daffAuthReducer(\n state = daffAuthInitialState,\n action: DaffAuthActions,\n): DaffAuthReducerState {\n switch (action.type) {\n case DaffAuthActionTypes.AuthCheckAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthActionTypes.AuthCheckSuccessAction:\n return {\n ...state,\n loggedIn: true,\n loading: false,\n errors: [],\n };\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n return {\n ...state,\n loggedIn: false,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthActionTypes.AuthServerSideAction:\n case DaffAuthActionTypes.AuthStorageFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthActionTypes.AuthCompleteAction:\n return {\n ...state,\n loggedIn: true,\n };\n\n case DaffAuthActionTypes.AuthRevokeAction:\n return {\n ...state,\n loggedIn: false,\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport const daffAuthLoginInitialState: DaffAuthLoginReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n} from '../../actions/public_api';\nimport { daffAuthLoginInitialState } from './login-initial-state';\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport function daffAuthLoginReducer<\n T extends DaffLoginInfo,\n U extends DaffAuthToken,\n>(\n state = daffAuthLoginInitialState,\n action: DaffAuthLoginActions<T, U>,\n): DaffAuthLoginReducerState {\n switch (action.type) {\n case DaffAuthLoginActionTypes.LoginAction:\n case DaffAuthLoginActionTypes.LogoutAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthLoginActionTypes.LoginFailureAction:\n case DaffAuthLoginActionTypes.LogoutFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport const daffAuthRegisterInitialState: DaffAuthRegisterReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffAccountRegistration } from '@daffodil/auth';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n} from '../../actions/public_api';\nimport { daffAuthRegisterInitialState } from './register-initial-state';\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport function daffAuthRegisterReducer<\n T extends DaffAccountRegistration,\n>(\n state = daffAuthRegisterInitialState,\n action: DaffAuthRegisterActions<T>,\n): DaffAuthRegisterReducerState {\n switch (action.type) {\n case DaffAuthRegisterActionTypes.RegisterAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthRegisterActionTypes.RegisterFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState = {\n loading: false,\n errors: [],\n token: null,\n};\n","import { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\nimport { daffAuthResetPasswordInitialState } from './initial-state';\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport function daffAuthResetPasswordReducer<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n>(\n state = daffAuthResetPasswordInitialState,\n action: DaffAuthResetPasswordActions<T>,\n): DaffAuthResetPasswordReducerState {\n switch (action.type) {\n case DaffAuthResetPasswordActionTypes.ResetPasswordAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction:\n return {\n ...state,\n token: action.token,\n };\n\n default:\n return state;\n }\n}\n","export const DAFF_AUTH_STORE_FEATURE_KEY = 'daffAuth';\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from './auth-feature-state.interface';\nimport { daffAuthReducer } from './auth/public_api';\nimport { daffAuthLoginReducer } from './login/public_api';\nimport { daffAuthRegisterReducer } from './register/public_api';\nimport { daffAuthResetPasswordReducer } from './reset-password/public_api';\n\nexport const daffAuthReducers: ActionReducerMap<DaffAuthFeatureState> = {\n auth: daffAuthReducer,\n login: daffAuthLoginReducer,\n register: daffAuthRegisterReducer,\n resetPassword: daffAuthResetPasswordReducer,\n};\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffAuthFeatureState,\n DAFF_AUTH_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n/**\n * Feature State Selector\n */\nexport const getDaffAuthFeatureStateSelector = (() => {\n let cache;\n return (): MemoizedSelector<Record<string, any>, DaffAuthFeatureState> =>\n cache = cache || createFeatureSelector<DaffAuthFeatureState>(DAFF_AUTH_STORE_FEATURE_KEY);\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface AuthSelectors {\n selectAuthState: MemoizedSelector<Record<string, any>, DaffAuthReducerState>;\n selectAuthLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n selectAuthLoggedIn: MemoizedSelector<Record<string, any>, boolean>;\n}\n\nconst createAuthSelectors = () => {\n const selectAuthState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.auth,\n );\n\n const selectAuthLoading = createSelector(\n selectAuthState,\n state => state.loading,\n );\n\n const selectAuthErrors = createSelector(\n selectAuthState,\n state => state.errors,\n );\n\n const selectAuthLoggedIn = createSelector(\n selectAuthState,\n state => state.loggedIn,\n );\n\n return {\n selectAuthState,\n selectAuthLoading,\n selectAuthErrors,\n selectAuthLoggedIn,\n };\n};\n\nexport const getAuthSelectors = (() => {\n let cache;\n return (): AuthSelectors =>\n cache = cache || createAuthSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthLoginReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthLoginSelectors {\n selectAuthLoginState: MemoizedSelector<Record<string, any>, DaffAuthLoginReducerState>;\n selectAuthLoginLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthLoginErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createLoginSelectors = () => {\n const selectAuthLoginState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.login,\n );\n\n const selectAuthLoginLoading = createSelector(\n selectAuthLoginState,\n state => state.loading,\n );\n\n const selectAuthLoginErrors = createSelector(\n selectAuthLoginState,\n state => state.errors,\n );\n\n return {\n selectAuthLoginState,\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n };\n};\n\nexport const getDaffAuthLoginSelectors = (() => {\n let cache;\n return (): DaffAuthLoginSelectors =>\n cache = cache || createLoginSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthRegisterReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthRegisterSelectors {\n selectAuthRegisterState: MemoizedSelector<Record<string, any>, DaffAuthRegisterReducerState>;\n selectAuthRegisterLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthRegisterErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createRegisterSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthRegisterState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.register,\n );\n\n const selectAuthRegisterLoading = createSelector(\n selectAuthRegisterState,\n state => state.loading,\n );\n\n const selectAuthRegisterErrors = createSelector(\n selectAuthRegisterState,\n state => state.errors,\n );\n\n return {\n selectAuthRegisterState,\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n };\n};\n\nexport const getDaffAuthRegisterSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): DaffAuthRegisterSelectors =>\n cache = cache || createRegisterSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthResetPasswordReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthResetPasswordSelectors {\n selectAuthResetPasswordState: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordReducerState>;\n selectAuthResetPasswordLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthResetPasswordErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n selectAuthResetPasswordToken: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordInfo['token']>;\n}\n\nconst createResetPasswordSelectors = (): DaffAuthResetPasswordSelectors => {\n const selectAuthResetPasswordState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.resetPassword,\n );\n\n const selectAuthResetPasswordLoading = createSelector(\n selectAuthResetPasswordState,\n state => state.loading,\n );\n\n const selectAuthResetPasswordErrors = createSelector(\n selectAuthResetPasswordState,\n state => state.errors,\n );\n\n const selectAuthResetPasswordToken = createSelector(\n selectAuthResetPasswordState,\n state => state.token,\n );\n\n return {\n selectAuthResetPasswordState,\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n };\n};\n\nexport const getDaffAuthResetPasswordSelectors = (() => {\n let cache;\n return (): DaffAuthResetPasswordSelectors =>\n cache = cache || createResetPasswordSelectors();\n})();\n","import { MemoizedSelector } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from '../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from './auth-feature.selector';\nimport {\n getAuthSelectors,\n AuthSelectors,\n} from './auth/auth.selector';\nimport {\n getDaffAuthLoginSelectors,\n DaffAuthLoginSelectors,\n} from './login/login.selector';\nimport {\n getDaffAuthRegisterSelectors,\n DaffAuthRegisterSelectors,\n} from './register/register.selector';\nimport {\n DaffAuthResetPasswordSelectors,\n getDaffAuthResetPasswordSelectors,\n} from './reset-password/selector';\n\nexport interface DaffAuthSelectors extends\n DaffAuthRegisterSelectors,\n DaffAuthLoginSelectors,\n DaffAuthResetPasswordSelectors,\n AuthSelectors {\n selectAuthFeatureState: MemoizedSelector<Record<string, any>, DaffAuthFeatureState>;\n}\n\nexport const getDaffAuthSelectors = (() => {\n let cache;\n return (): DaffAuthSelectors =>\n cache = cache || {\n ...getAuthSelectors(),\n ...getDaffAuthLoginSelectors(),\n ...getDaffAuthRegisterSelectors(),\n ...getDaffAuthResetPasswordSelectors(),\n selectAuthFeatureState: getDaffAuthFeatureStateSelector(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthFacade implements DaffAuthFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n loggedIn$: Observable<boolean>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoading,\n selectAuthErrors,\n selectAuthLoggedIn,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoading));\n this.errors$ = this.store.pipe(select(selectAuthErrors));\n this.loggedIn$ = this.store.pipe(select(selectAuthLoggedIn));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthLoginFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoginLoading));\n this.errors$ = this.store.pipe(select(selectAuthLoginErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthRegisterFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthRegisterLoading));\n this.errors$ = this.store.pipe(select(selectAuthRegisterErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthResetPasswordFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {\n token$: Observable<DaffAuthResetPasswordInfo['token']>;\n\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n } = getDaffAuthSelectors();\n\n this.token$ = this.store.pipe(select(selectAuthResetPasswordToken));\n\n this.loading$ = this.store.pipe(select(selectAuthResetPasswordLoading));\n this.errors$ = this.store.pipe(select(selectAuthResetPasswordErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { DaffAuthStateConfig } from './type';\n\nconst TWENTY_MINUTES = 1.2e6;\n\nexport const daffAuthStateDefaultConfig: DaffAuthStateConfig = {\n checkInterval: TWENTY_MINUTES,\n};\n","import {\n InjectionToken,\n ValueProvider,\n} from '@angular/core';\n\nimport { daffAuthStateDefaultConfig } from './default';\nimport { DaffAuthStateConfig } from './type';\n\nexport const DAFF_AUTH_STATE_CONFIG = new InjectionToken('DAFF_AUTH_STATE_CONFIG', { factory: () => daffAuthStateDefaultConfig });\n\nexport const provideDaffAuthStateConfig = (config: DaffAuthStateConfig): ValueProvider => ({\n provide: DAFF_AUTH_STATE_CONFIG,\n useValue: config,\n});\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n repeat,\n filter,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthCheckSuccess,\n DaffAuthCheckFailure,\n DaffAuthCheck,\n DaffAuthGuardCheckCompletion,\n DaffAuthGuardCheck,\n DaffAuthStorageFailure,\n DaffAuthServerSide,\n DaffAuthRevoke,\n} from '../actions/public_api';\nimport {\n DaffAuthStateConfig,\n DAFF_AUTH_STATE_CONFIG,\n} from '../config/public_api';\n\n@Injectable()\nexport class DaffAuthEffects {\n constructor(\n private actions$: Actions,\n @Inject(DaffAuthDriver) private authDriver: DaffAuthServiceInterface,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n @Inject(DAFF_AUTH_STATE_CONFIG) private config: DaffAuthStateConfig,\n ) {}\n\n check$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthCheckAction),\n switchMap((action: DaffAuthCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthCheckSuccess()),\n catchError((error: DaffError) => of(new DaffAuthCheckFailure(this.errorMatcher(error)))),\n ),\n ),\n ));\n\n guardCheck$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthGuardCheckAction),\n switchMap((action: DaffAuthGuardCheck) =>\n this.authDriver.check().pipe(\n map(() => new DaffAuthGuardCheckCompletion(true)),\n catchError((error: DaffError) => of(new DaffAuthGuardCheckCompletion(false))),\n ),\n ),\n ));\n\n removeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType<DaffAuthCheckFailure | DaffAuthGuardCheckCompletion>(\n DaffAuthActionTypes.AuthGuardCheckCompletionAction,\n DaffAuthActionTypes.AuthCheckFailureAction,\n ),\n filter(action => {\n // don't remove token when guard check completes with true result\n if (action.type === DaffAuthActionTypes.AuthGuardCheckCompletionAction && action.result) {\n return false;\n }\n\n return true;\n }),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n map(() => new DaffAuthRevoke()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n }\n }),\n ));\n\n // this needs to be defined after `check$` or else the driver call won't be run\n authCheckInterval$ = createEffect(() => of(new DaffAuthCheck()).pipe(\n repeat({ delay: this.config.checkInterval }),\n filter(() => !!this.storage.getAuthToken()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n\n default:\n return EMPTY;\n }\n }),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffLoginDriver,\n DaffLoginServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLogin,\n DaffAuthLoginSuccess,\n DaffAuthLoginFailure,\n DaffAuthLogoutSuccess,\n DaffAuthLogoutFailure,\n DaffAuthLogout,\n DaffAuthStorageFailure,\n DaffAuthComplete,\n DaffAuthServerSide,\n DaffAuthRevoke,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthLoginEffects<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffLoginDriver) private loginDriver: DaffLoginServiceInterface<T, U>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n login$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginAction),\n switchMap((action: DaffAuthLogin<T>) =>\n this.loginDriver.login(action.loginInfo).pipe(\n map((resp) =>\n new DaffAuthLoginSuccess<U>(resp),\n ),\n catchError((error: DaffError) =>\n of(new DaffAuthLoginFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n logout$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LogoutAction),\n switchMap((action: DaffAuthLogout) =>\n this.loginDriver.logout().pipe(\n map(() => new DaffAuthLogoutSuccess()),\n catchError((error: DaffError) =>\n of(new DaffAuthLogoutFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n removeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType<DaffAuthLogoutSuccess>(\n DaffAuthLoginActionTypes.LogoutSuccessAction,\n ),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n map(() => new DaffAuthRevoke()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n }\n }),\n ));\n\n storeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginSuccessAction),\n tap((action: DaffAuthLoginSuccess<U>) => {\n this.storage.setAuthToken(action.auth.token);\n }),\n map(() => new DaffAuthComplete()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n }\n }),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAccountRegistration,\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffRegisterDriver,\n DaffRegisterServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegister,\n DaffAuthRegisterSuccess,\n DaffAuthRegisterFailure,\n DaffAuthComplete,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthRegisterEffects<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffRegisterDriver) private registerDriver: DaffRegisterServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n register$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthRegisterActionTypes.RegisterAction),\n switchMap((action: DaffAuthRegister<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.registerDriver.register(action.registration).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffAuthRegisterSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.registerDriver.registerOnly(action.registration).pipe(\n map(() => new DaffAuthRegisterSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffAuthRegisterFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthResetPasswordInfo,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffResetPasswordDriver,\n DaffResetPasswordServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffResetPassword,\n DaffResetPasswordSuccess,\n DaffResetPasswordFailure,\n DaffSendResetEmail,\n DaffSendResetEmailSuccess,\n DaffSendResetEmailFailure,\n DaffAuthComplete,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthResetPasswordEffects<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffResetPasswordDriver) private driver: DaffResetPasswordServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n sendResetEmail$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.SendResetEmailAction),\n switchMap((action: DaffSendResetEmail) =>\n this.driver.sendResetEmail(action.email).pipe(\n map(() =>\n new DaffSendResetEmailSuccess(),\n ),\n catchError((error: DaffError) =>\n of(new DaffSendResetEmailFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n resetPassword$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.ResetPasswordAction),\n switchMap((action: DaffResetPassword<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.driver.resetPassword(action.info).pipe(\n tap(token => this.storage.setAuthToken(token)),\n switchMap(() => of(new DaffResetPasswordSuccess(), new DaffAuthComplete())),\n )),\n defer(() => this.driver.resetPasswordOnly(action.info).pipe(\n map(() => new DaffResetPasswordSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffResetPasswordFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n}\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport {\n DaffAuthStateConfig,\n daffAuthStateDefaultConfig,\n provideDaffAuthStateConfig,\n} from './config/public_api';\nimport { DaffAuthEffects } from './effects/auth.effects';\nimport { DaffAuthLoginEffects } from './effects/login.effects';\nimport { DaffAuthRegisterEffects } from './effects/register.effects';\nimport { DaffAuthResetPasswordEffects } from './effects/reset-password.effects';\nimport {\n DAFF_AUTH_STORE_FEATURE_KEY,\n daffAuthReducers,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTH_STORE_FEATURE_KEY, daffAuthReducers),\n EffectsModule.forFeature([\n DaffAuthEffects,\n DaffAuthLoginEffects,\n DaffAuthRegisterEffects,\n DaffAuthResetPasswordEffects,\n ]),\n ],\n})\nexport class DaffAuthStateModule {\n static withConfig(config: Partial<DaffAuthStateConfig> = {}): ModuleWithProviders<DaffAuthStateModule> {\n return {\n ngModule: DaffAuthStateModule,\n providers: [\n provideDaffAuthStateConfig({\n ...daffAuthStateDefaultConfig,\n ...config,\n }),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1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,CAAA;AACP,YAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;YACrE,aAAa,CAAC,UAAU,CAAC;gBACvB,eAAe;gBACf,oBAAoB;gBACpB,uBAAuB;gBACvB,4BAA4B;aAC7B,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;2FAEU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;wBACrE,aAAa,CAAC,UAAU,CAAC;4BACvB,eAAe;4BACf,oBAAoB;4BACpB,uBAAuB;4BACvB,4BAA4B;yBAC7B,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-auth-state.mjs","sources":["../../../libs/auth/state/src/actions/auth.actions.ts","../../../libs/auth/state/src/actions/login.actions.ts","../../../libs/auth/state/src/actions/register.actions.ts","../../../libs/auth/state/src/actions/reset-password.actions.ts","../../../libs/auth/state/src/reducers/auth/auth-initial-state.ts","../../../libs/auth/state/src/reducers/auth/auth.reducer.ts","../../../libs/auth/state/src/reducers/login/login-initial-state.ts","../../../libs/auth/state/src/reducers/login/login.reducer.ts","../../../libs/auth/state/src/reducers/register/register-initial-state.ts","../../../libs/auth/state/src/reducers/register/register.reducer.ts","../../../libs/auth/state/src/reducers/reset-password/initial-state.ts","../../../libs/auth/state/src/reducers/reset-password/reducer.ts","../../../libs/auth/state/src/reducers/auth-store-feature-key.ts","../../../libs/auth/state/src/reducers/auth-reducers.ts","../../../libs/auth/state/src/selectors/auth-feature.selector.ts","../../../libs/auth/state/src/selectors/auth/auth.selector.ts","../../../libs/auth/state/src/selectors/login/login.selector.ts","../../../libs/auth/state/src/selectors/register/register.selector.ts","../../../libs/auth/state/src/selectors/reset-password/selector.ts","../../../libs/auth/state/src/selectors/auth-all.selector.ts","../../../libs/auth/state/src/facades/auth/facade.ts","../../../libs/auth/state/src/facades/login/facade.ts","../../../libs/auth/state/src/facades/register/facade.ts","../../../libs/auth/state/src/facades/reset-password/facade.ts","../../../libs/auth/state/src/config/default.ts","../../../libs/auth/state/src/config/token.ts","../../../libs/auth/state/src/effects/auth.effects.ts","../../../libs/auth/state/src/effects/login.effects.ts","../../../libs/auth/state/src/effects/register.effects.ts","../../../libs/auth/state/src/effects/reset-password.effects.ts","../../../libs/auth/state/src/auth-state.module.ts","../../../libs/auth/state/src/daffodil-auth-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthActionTypes {\n AuthStorageFailureAction = '[@daffodil/auth] Auth Storage Failure Action',\n AuthGuardLogoutAction = '[@daffodil/auth] Auth Guard Logout Action',\n AuthServerSideAction = '[@daffodil/auth] Auth Server Side Action',\n AuthCheckAction = '[@daffodil/auth] Auth Check Action',\n AuthCheckSuccessAction = '[@daffodil/auth] Auth Check Success Action',\n AuthCheckFailureAction = '[@daffodil/auth] Auth Check Failure Action',\n}\n\n/*\n * An action triggered upon a failed auth storage operation.\n */\nexport class DaffAuthStorageFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthStorageFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/*\n * An action triggered when an auth token is cleared from storage by a routing guard.\n */\nexport class DaffAuthGuardLogout implements Action {\n readonly type = DaffAuthActionTypes.AuthGuardLogoutAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/*\n * An action triggered when an invalid operation is performed in the server environment.\n * A common example is trying to access the auth token from storage.\n */\nexport class DaffAuthServerSide implements Action {\n readonly type = DaffAuthActionTypes.AuthServerSideAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize an auth check request.\n */\nexport class DaffAuthCheck implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckAction;\n}\n\n/**\n * An action triggered upon a successful auth check.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthCheckSuccess implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckSuccessAction;\n}\n\n/**\n * An action triggered upon a failed auth check request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthCheckFailure implements Action {\n readonly type = DaffAuthActionTypes.AuthCheckFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthActions =\n | DaffAuthStorageFailure\n | DaffAuthGuardLogout\n | DaffAuthServerSide\n | DaffAuthCheck\n | DaffAuthCheckSuccess\n | DaffAuthCheckFailure;\n","import { Action } from '@ngrx/store';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthLoginActionTypes {\n LoginAction = '[@daffodil/auth] Login Action',\n LoginSuccessAction = '[@daffodil/auth] Login Success Action',\n LoginFailureAction = '[@daffodil/auth] Login Failure Action',\n LogoutAction = '[@daffodil/auth] Logout Action',\n LogoutSuccessAction = '[@daffodil/auth] Logout Success Action',\n LogoutFailureAction = '[@daffodil/auth] Logout Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth login request.\n */\nexport class DaffAuthLogin<T extends DaffLoginInfo = DaffLoginInfo> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginAction;\n\n constructor(public loginInfo: T) {}\n}\n\n/**\n * An action triggered upon a successful auth login.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLoginSuccess<T extends DaffAuthToken = DaffAuthToken> implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginSuccessAction;\n\n constructor(public auth: T) {}\n}\n\n/**\n * An action triggered upon a failed auth login request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLoginFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LoginFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffAuthLogout implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutAction;\n}\n\n/**\n * An action triggered upon a successful logout.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthLogoutSuccess implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutSuccessAction;\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthLogoutFailure implements Action {\n readonly type = DaffAuthLoginActionTypes.LogoutFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthLoginActions<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> =\n | DaffAuthLogin<T>\n | DaffAuthLoginSuccess<U>\n | DaffAuthLoginFailure\n | DaffAuthLogout\n | DaffAuthLogoutSuccess\n | DaffAuthLogoutFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthRegisterActionTypes {\n RegisterAction = '[@daffodil/auth] Register Action',\n RegisterSuccessAction = '[@daffodil/auth] Register Success Action',\n RegisterFailureAction = '[@daffodil/auth] Register Failure Action',\n}\n\n/**\n * An action triggered to initialize a auth register request.\n *\n * @param registration\n */\nexport class DaffAuthRegister<T extends DaffAccountRegistration = DaffAccountRegistration> implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterAction;\n\n constructor(public registration: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful auth register request.\n *\n * @param token - the customer access token\n */\nexport class DaffAuthRegisterSuccess implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterSuccessAction;\n\n constructor(public token?: string) {}\n}\n\n/**\n * An action triggered upon a failed auth request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffAuthRegisterFailure implements Action {\n readonly type = DaffAuthRegisterActionTypes.RegisterFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\nexport type DaffAuthRegisterActions<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> =\n | DaffAuthRegister<T>\n | DaffAuthRegisterSuccess\n | DaffAuthRegisterFailure;\n","import { Action } from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nexport enum DaffAuthResetPasswordActionTypes {\n SendResetEmailAction = '[@daffodil/auth] Send Reset Email Action',\n SendResetEmailSuccessAction = '[@daffodil/auth] Send Reset Email Success Action',\n SendResetEmailFailureAction = '[@daffodil/auth] Send Reset Email Failure Action',\n ResetPasswordAction = '[@daffodil/auth] Reset Password Action',\n ResetPasswordSuccessAction = '[@daffodil/auth] Reset Password Success Action',\n ResetPasswordFailureAction = '[@daffodil/auth] Reset Password Failure Action',\n ResetPasswordLandingAction = '[@daffodil/auth] Reset Password Landing Action',\n}\n\n/**\n * An action triggered to send the specified customer an email to reset their password.\n */\nexport class DaffSendResetEmail implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailAction;\n\n constructor(public email: string) {}\n}\n\n/**\n * An action triggered upon a successfully sent reset password email.\n */\nexport class DaffSendResetEmailSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction;\n}\n\n/**\n * An action triggered upon a failure to send the reset password email.\n *\n * @param errorMessage - an error message\n */\nexport class DaffSendResetEmailFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered to initialize a logout request.\n */\nexport class DaffResetPassword<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordAction;\n\n constructor(public info: T, public autoLogin = true) {}\n}\n\n/**\n * An action triggered upon a successful logout.\n */\nexport class DaffResetPasswordSuccess implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction;\n\n constructor(public token?: string) {}\n}\n\n/**\n * An action triggered upon a failed logout request.\n *\n * @param errorMessage - an error message\n */\nexport class DaffResetPasswordFailure implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction;\n\n constructor(public errorMessage: DaffStateError) {}\n}\n\n/**\n * An action triggered upon the user navigating to the reset password page from the link in their email.\n *\n * @param token - The token with which the password can be reset\n */\nexport class DaffResetPasswordLanding implements Action {\n readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction;\n\n constructor(public token: DaffAuthResetPasswordInfo['token']) {}\n}\n\nexport type DaffAuthResetPasswordActions<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> =\n | DaffSendResetEmail\n | DaffSendResetEmailSuccess\n | DaffSendResetEmailFailure\n | DaffResetPassword<T>\n | DaffResetPasswordSuccess\n | DaffResetPasswordFailure\n | DaffResetPasswordLanding;\n","import { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport const daffAuthInitialState: DaffAuthReducerState = {\n loading: false,\n errors: [],\n loggedIn: false,\n};\n","import {\n DaffAuthActionTypes,\n DaffAuthActions,\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterSuccess,\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\nimport { daffAuthInitialState } from './auth-initial-state';\nimport { DaffAuthReducerState } from './auth-reducer-state.interface';\n\nexport function daffAuthReducer(\n state = daffAuthInitialState,\n action: DaffAuthActions | DaffAuthLoginActions | DaffAuthRegisterSuccess | DaffAuthResetPasswordActions,\n): DaffAuthReducerState {\n switch (action.type) {\n case DaffAuthActionTypes.AuthCheckAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthActionTypes.AuthCheckSuccessAction:\n return {\n ...state,\n loggedIn: true,\n loading: false,\n errors: [],\n };\n\n case DaffAuthActionTypes.AuthCheckFailureAction:\n case DaffAuthActionTypes.AuthGuardLogoutAction:\n return {\n ...state,\n loggedIn: false,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthActionTypes.AuthServerSideAction:\n case DaffAuthActionTypes.AuthStorageFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n return {\n ...state,\n loggedIn: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n return action.token ? {\n ...state,\n loggedIn: true,\n } : state;\n\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loggedIn: false,\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport const daffAuthLoginInitialState: DaffAuthLoginReducerState = {\n loading: false,\n errors: [],\n};\n","import {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLoginActions,\n} from '../../actions/public_api';\nimport { daffAuthLoginInitialState } from './login-initial-state';\nimport { DaffAuthLoginReducerState } from './login-reducer-state.interface';\n\nexport function daffAuthLoginReducer<\n T extends DaffLoginInfo,\n U extends DaffAuthToken,\n>(\n state = daffAuthLoginInitialState,\n action: DaffAuthLoginActions<T, U>,\n): DaffAuthLoginReducerState {\n switch (action.type) {\n case DaffAuthLoginActionTypes.LoginAction:\n case DaffAuthLoginActionTypes.LogoutAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthLoginActionTypes.LoginSuccessAction:\n case DaffAuthLoginActionTypes.LogoutSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthLoginActionTypes.LoginFailureAction:\n case DaffAuthLoginActionTypes.LogoutFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport const daffAuthRegisterInitialState: DaffAuthRegisterReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffAccountRegistration } from '@daffodil/auth';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterActions,\n} from '../../actions/public_api';\nimport { daffAuthRegisterInitialState } from './register-initial-state';\nimport { DaffAuthRegisterReducerState } from './register-reducer-state.interface';\n\nexport function daffAuthRegisterReducer<\n T extends DaffAccountRegistration,\n>(\n state = daffAuthRegisterInitialState,\n action: DaffAuthRegisterActions<T>,\n): DaffAuthRegisterReducerState {\n switch (action.type) {\n case DaffAuthRegisterActionTypes.RegisterAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthRegisterActionTypes.RegisterSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthRegisterActionTypes.RegisterFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n default:\n return state;\n }\n}\n","import { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState = {\n loading: false,\n errors: [],\n token: null,\n};\n","import { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffAuthResetPasswordActions,\n} from '../../actions/public_api';\nimport { daffAuthResetPasswordInitialState } from './initial-state';\nimport { DaffAuthResetPasswordReducerState } from './state.interface';\n\nexport function daffAuthResetPasswordReducer<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n>(\n state = daffAuthResetPasswordInitialState,\n action: DaffAuthResetPasswordActions<T>,\n): DaffAuthResetPasswordReducerState {\n switch (action.type) {\n case DaffAuthResetPasswordActionTypes.ResetPasswordAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordFailureAction:\n case DaffAuthResetPasswordActionTypes.SendResetEmailFailureAction:\n return {\n ...state,\n loading: false,\n errors: [action.errorMessage],\n };\n\n case DaffAuthResetPasswordActionTypes.ResetPasswordLandingAction:\n return {\n ...state,\n token: action.token,\n };\n\n default:\n return state;\n }\n}\n","export const DAFF_AUTH_STORE_FEATURE_KEY = 'daffAuth';\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from './auth-feature-state.interface';\nimport { daffAuthReducer } from './auth/public_api';\nimport { daffAuthLoginReducer } from './login/public_api';\nimport { daffAuthRegisterReducer } from './register/public_api';\nimport { daffAuthResetPasswordReducer } from './reset-password/public_api';\n\nexport const daffAuthReducers: ActionReducerMap<DaffAuthFeatureState> = {\n auth: daffAuthReducer,\n login: daffAuthLoginReducer,\n register: daffAuthRegisterReducer,\n resetPassword: daffAuthResetPasswordReducer,\n};\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffAuthFeatureState,\n DAFF_AUTH_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n/**\n * Feature State Selector\n */\nexport const getDaffAuthFeatureStateSelector = (() => {\n let cache;\n return (): MemoizedSelector<Record<string, any>, DaffAuthFeatureState> =>\n cache = cache || createFeatureSelector<DaffAuthFeatureState>(DAFF_AUTH_STORE_FEATURE_KEY);\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface AuthSelectors {\n selectAuthState: MemoizedSelector<Record<string, any>, DaffAuthReducerState>;\n selectAuthLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n selectAuthLoggedIn: MemoizedSelector<Record<string, any>, boolean>;\n}\n\nconst createAuthSelectors = () => {\n const selectAuthState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.auth,\n );\n\n const selectAuthLoading = createSelector(\n selectAuthState,\n state => state.loading,\n );\n\n const selectAuthErrors = createSelector(\n selectAuthState,\n state => state.errors,\n );\n\n const selectAuthLoggedIn = createSelector(\n selectAuthState,\n state => state.loggedIn,\n );\n\n return {\n selectAuthState,\n selectAuthLoading,\n selectAuthErrors,\n selectAuthLoggedIn,\n };\n};\n\nexport const getAuthSelectors = (() => {\n let cache;\n return (): AuthSelectors =>\n cache = cache || createAuthSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthLoginReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthLoginSelectors {\n selectAuthLoginState: MemoizedSelector<Record<string, any>, DaffAuthLoginReducerState>;\n selectAuthLoginLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthLoginErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createLoginSelectors = () => {\n const selectAuthLoginState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.login,\n );\n\n const selectAuthLoginLoading = createSelector(\n selectAuthLoginState,\n state => state.loading,\n );\n\n const selectAuthLoginErrors = createSelector(\n selectAuthLoginState,\n state => state.errors,\n );\n\n return {\n selectAuthLoginState,\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n };\n};\n\nexport const getDaffAuthLoginSelectors = (() => {\n let cache;\n return (): DaffAuthLoginSelectors =>\n cache = cache || createLoginSelectors();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthRegisterReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthRegisterSelectors {\n selectAuthRegisterState: MemoizedSelector<Record<string, any>, DaffAuthRegisterReducerState>;\n selectAuthRegisterLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthRegisterErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n}\n\nconst createRegisterSelectors = <T extends DaffAuthToken = DaffAuthToken>() => {\n const selectAuthRegisterState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.register,\n );\n\n const selectAuthRegisterLoading = createSelector(\n selectAuthRegisterState,\n state => state.loading,\n );\n\n const selectAuthRegisterErrors = createSelector(\n selectAuthRegisterState,\n state => state.errors,\n );\n\n return {\n selectAuthRegisterState,\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n };\n};\n\nexport const getDaffAuthRegisterSelectors = (() => {\n let cache;\n return <T extends DaffAuthToken = DaffAuthToken>(): DaffAuthRegisterSelectors =>\n cache = cache || createRegisterSelectors<T>();\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthResetPasswordReducerState } from '../../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from '../auth-feature.selector';\n\nexport interface DaffAuthResetPasswordSelectors {\n selectAuthResetPasswordState: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordReducerState>;\n selectAuthResetPasswordLoading: MemoizedSelector<Record<string, any>, boolean>;\n selectAuthResetPasswordErrors: MemoizedSelector<Record<string, any>, DaffStateError[]>;\n selectAuthResetPasswordToken: MemoizedSelector<Record<string, any>, DaffAuthResetPasswordInfo['token']>;\n}\n\nconst createResetPasswordSelectors = (): DaffAuthResetPasswordSelectors => {\n const selectAuthResetPasswordState = createSelector(\n getDaffAuthFeatureStateSelector(),\n state => state.resetPassword,\n );\n\n const selectAuthResetPasswordLoading = createSelector(\n selectAuthResetPasswordState,\n state => state.loading,\n );\n\n const selectAuthResetPasswordErrors = createSelector(\n selectAuthResetPasswordState,\n state => state.errors,\n );\n\n const selectAuthResetPasswordToken = createSelector(\n selectAuthResetPasswordState,\n state => state.token,\n );\n\n return {\n selectAuthResetPasswordState,\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n };\n};\n\nexport const getDaffAuthResetPasswordSelectors = (() => {\n let cache;\n return (): DaffAuthResetPasswordSelectors =>\n cache = cache || createResetPasswordSelectors();\n})();\n","import { MemoizedSelector } from '@ngrx/store';\n\nimport { DaffAuthFeatureState } from '../reducers/public_api';\nimport { getDaffAuthFeatureStateSelector } from './auth-feature.selector';\nimport {\n getAuthSelectors,\n AuthSelectors,\n} from './auth/auth.selector';\nimport {\n getDaffAuthLoginSelectors,\n DaffAuthLoginSelectors,\n} from './login/login.selector';\nimport {\n getDaffAuthRegisterSelectors,\n DaffAuthRegisterSelectors,\n} from './register/register.selector';\nimport {\n DaffAuthResetPasswordSelectors,\n getDaffAuthResetPasswordSelectors,\n} from './reset-password/selector';\n\nexport interface DaffAuthSelectors extends\n DaffAuthRegisterSelectors,\n DaffAuthLoginSelectors,\n DaffAuthResetPasswordSelectors,\n AuthSelectors {\n selectAuthFeatureState: MemoizedSelector<Record<string, any>, DaffAuthFeatureState>;\n}\n\nexport const getDaffAuthSelectors = (() => {\n let cache;\n return (): DaffAuthSelectors =>\n cache = cache || {\n ...getAuthSelectors(),\n ...getDaffAuthLoginSelectors(),\n ...getDaffAuthRegisterSelectors(),\n ...getDaffAuthResetPasswordSelectors(),\n selectAuthFeatureState: getDaffAuthFeatureStateSelector(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthToken } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthFacade implements DaffAuthFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n loggedIn$: Observable<boolean>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoading,\n selectAuthErrors,\n selectAuthLoggedIn,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoading));\n this.errors$ = this.store.pipe(select(selectAuthErrors));\n this.loggedIn$ = this.store.pipe(select(selectAuthLoggedIn));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthLoginFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthLoginLoading,\n selectAuthLoginErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthLoginLoading));\n this.errors$ = this.store.pipe(select(selectAuthLoginErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthRegisterFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthRegisterLoading,\n selectAuthRegisterErrors,\n } = getDaffAuthSelectors();\n\n this.loading$ = this.store.pipe(select(selectAuthRegisterLoading));\n this.errors$ = this.store.pipe(select(selectAuthRegisterErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffAuthFeatureState } from '../../reducers/public_api';\nimport { getDaffAuthSelectors } from '../../selectors/public_api';\nimport { DaffAuthResetPasswordFacadeInterface } from './facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {\n token$: Observable<DaffAuthResetPasswordInfo['token']>;\n\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(private store: Store<DaffAuthFeatureState>) {\n const {\n selectAuthResetPasswordLoading,\n selectAuthResetPasswordErrors,\n selectAuthResetPasswordToken,\n } = getDaffAuthSelectors();\n\n this.token$ = this.store.pipe(select(selectAuthResetPasswordToken));\n\n this.loading$ = this.store.pipe(select(selectAuthResetPasswordLoading));\n this.errors$ = this.store.pipe(select(selectAuthResetPasswordErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import { DaffAuthStateConfig } from './type';\n\nconst TWENTY_MINUTES = 1.2e6;\n\nexport const daffAuthStateDefaultConfig: DaffAuthStateConfig = {\n checkInterval: TWENTY_MINUTES,\n};\n","import {\n InjectionToken,\n ValueProvider,\n} from '@angular/core';\n\nimport { daffAuthStateDefaultConfig } from './default';\nimport { DaffAuthStateConfig } from './type';\n\nexport const DAFF_AUTH_STATE_CONFIG = new InjectionToken('DAFF_AUTH_STATE_CONFIG', { factory: () => daffAuthStateDefaultConfig });\n\nexport const provideDaffAuthStateConfig = (config: DaffAuthStateConfig): ValueProvider => ({\n provide: DAFF_AUTH_STATE_CONFIG,\n useValue: config,\n});\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n repeat,\n filter,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport { DaffAuthDriverTokenCheck } from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\nimport {\n DAFF_DRIVER_HTTP_CLIENT_CACHE_SERVICE,\n DaffDriverHttpClientCacheServiceInterface,\n} from '@daffodil/driver';\n\nimport {\n DaffAuthActionTypes,\n DaffAuthCheckSuccess,\n DaffAuthCheckFailure,\n DaffAuthCheck,\n DaffAuthStorageFailure,\n DaffAuthServerSide,\n DaffAuthLoginActionTypes,\n DaffAuthActions,\n DaffAuthLoginActions,\n} from '../actions/public_api';\nimport {\n DaffAuthStateConfig,\n DAFF_AUTH_STATE_CONFIG,\n} from '../config/public_api';\n\n@Injectable()\nexport class DaffAuthEffects {\n constructor(\n private actions$: Actions<DaffAuthActions | DaffAuthLoginActions>,\n private tokenCheck: DaffAuthDriverTokenCheck,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n @Inject(DAFF_AUTH_STATE_CONFIG) private config: DaffAuthStateConfig,\n @Inject(DAFF_DRIVER_HTTP_CLIENT_CACHE_SERVICE) private clientCache: DaffDriverHttpClientCacheServiceInterface,\n ) {}\n\n check$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthActionTypes.AuthCheckAction),\n switchMap((action) =>\n this.tokenCheck.check().pipe(\n map(() => new DaffAuthCheckSuccess()),\n catchError((error: DaffError) => of(new DaffAuthCheckFailure(this.errorMatcher(error)))),\n ),\n ),\n ));\n\n removeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthActionTypes.AuthCheckFailureAction,\n ),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n switchMap(() => EMPTY),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n }\n }),\n ), { dispatch: false });\n\n // this needs to be defined after `check$` or else the driver call won't be run\n authCheckInterval$ = createEffect(() => of(new DaffAuthCheck()).pipe(\n repeat({ delay: this.config.checkInterval }),\n filter(() => !!this.storage.getAuthToken()),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n\n default:\n return EMPTY;\n }\n }),\n ));\n\n clearClientCache$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthActionTypes.AuthCheckFailureAction,\n DaffAuthActionTypes.AuthGuardLogoutAction,\n DaffAuthLoginActionTypes.LogoutSuccessAction,\n ),\n tap(() => {\n this.clientCache.reset();\n }),\n switchMap(() => EMPTY),\n ), { dispatch: false });\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n EMPTY,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffLoginDriver,\n DaffLoginServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthLoginActionTypes,\n DaffAuthLogin,\n DaffAuthLoginSuccess,\n DaffAuthLoginFailure,\n DaffAuthLogoutSuccess,\n DaffAuthLogoutFailure,\n DaffAuthLogout,\n DaffAuthStorageFailure,\n DaffAuthServerSide,\n DaffAuthLoginActions,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthLoginEffects<\n T extends DaffLoginInfo = DaffLoginInfo,\n U extends DaffAuthToken = DaffAuthToken,\n> {\n constructor(\n private actions$: Actions<DaffAuthLoginActions<T, U>>,\n @Inject(DaffLoginDriver) private loginDriver: DaffLoginServiceInterface<T, U>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n login$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginAction),\n switchMap((action) =>\n this.loginDriver.login(action.loginInfo).pipe(\n map((resp) => new DaffAuthLoginSuccess<U>(resp),\n ),\n catchError((error: DaffError) =>\n of(new DaffAuthLoginFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n logout$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LogoutAction),\n switchMap((action: DaffAuthLogout) =>\n this.loginDriver.logout().pipe(\n map(() => new DaffAuthLogoutSuccess()),\n catchError((error: DaffError) =>\n of(new DaffAuthLogoutFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n removeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType(\n DaffAuthLoginActionTypes.LogoutSuccessAction,\n ),\n tap(() => {\n this.storage.removeAuthToken();\n }),\n switchMap(() => EMPTY),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n }\n }),\n ), { dispatch: false });\n\n storeAuthToken$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthLoginActionTypes.LoginSuccessAction),\n tap((action) => {\n this.storage.setAuthToken(action.auth.token);\n }),\n switchMap(() => EMPTY),\n catchError((error: Error) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(new DaffAuthServerSide(this.errorMatcher(error)));\n\n case error instanceof DaffStorageServiceError:\n default:\n return of(new DaffAuthStorageFailure(this.errorMatcher(error)));\n }\n }),\n ), { dispatch: false });\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAccountRegistration,\n DaffAuthStorageService,\n DAFF_AUTH_ERROR_MATCHER,\n} from '@daffodil/auth';\nimport {\n DaffRegisterDriver,\n DaffRegisterServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthRegisterActionTypes,\n DaffAuthRegisterSuccess,\n DaffAuthRegisterFailure,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n DaffAuthRegisterActions,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthRegisterEffects<\n T extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n constructor(\n private actions$: Actions<DaffAuthRegisterActions<T>>,\n @Inject(DaffRegisterDriver) private registerDriver: DaffRegisterServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n register$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthRegisterActionTypes.RegisterAction),\n switchMap((action) =>\n iif(\n () => action.autoLogin,\n defer(() => this.registerDriver.register(action.registration).pipe(\n tap(token => this.storage.setAuthToken(token)),\n map((token) => new DaffAuthRegisterSuccess(token)),\n )),\n defer(() => this.registerDriver.registerOnly(action.registration).pipe(\n map(() => new DaffAuthRegisterSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffAuthRegisterFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffAuthRegisterFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n of,\n Observable,\n iif,\n defer,\n} from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DAFF_AUTH_ERROR_MATCHER,\n DaffAuthResetPasswordInfo,\n DaffAuthStorageService,\n} from '@daffodil/auth';\nimport {\n DaffResetPasswordDriver,\n DaffResetPasswordServiceInterface,\n} from '@daffodil/auth/driver';\nimport {\n DaffError,\n DaffServerSideStorageError,\n DaffStorageServiceError,\n} from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\n\nimport {\n DaffAuthResetPasswordActionTypes,\n DaffResetPassword,\n DaffResetPasswordSuccess,\n DaffResetPasswordFailure,\n DaffSendResetEmail,\n DaffSendResetEmailSuccess,\n DaffSendResetEmailFailure,\n DaffAuthServerSide,\n DaffAuthStorageFailure,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffAuthResetPasswordEffects<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffResetPasswordDriver) private driver: DaffResetPasswordServiceInterface<T>,\n @Inject(DAFF_AUTH_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n private storage: DaffAuthStorageService,\n ) {}\n\n sendResetEmail$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.SendResetEmailAction),\n switchMap((action: DaffSendResetEmail) =>\n this.driver.sendResetEmail(action.email).pipe(\n map(() =>\n new DaffSendResetEmailSuccess(),\n ),\n catchError((error: DaffError) =>\n of(new DaffSendResetEmailFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n resetPassword$ = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthResetPasswordActionTypes.ResetPasswordAction),\n switchMap((action: DaffResetPassword<T>) =>\n iif(\n () => action.autoLogin,\n defer(() => this.driver.resetPassword(action.info).pipe(\n tap(token => this.storage.setAuthToken(token)),\n map((token) => new DaffResetPasswordSuccess(token)),\n )),\n defer(() => this.driver.resetPasswordOnly(action.info).pipe(\n map(() => new DaffResetPasswordSuccess()),\n )),\n ).pipe(\n catchError((error: DaffError) => {\n switch (true) {\n case error instanceof DaffServerSideStorageError:\n return of(\n new DaffAuthServerSide(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n case error instanceof DaffStorageServiceError:\n return of(\n new DaffAuthStorageFailure(this.errorMatcher(error)),\n new DaffResetPasswordFailure(this.errorMatcher(error)),\n );\n\n default:\n return of(new DaffResetPasswordFailure(this.errorMatcher(error)));\n }\n }),\n ),\n ),\n ));\n}\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport {\n DaffAuthStateConfig,\n daffAuthStateDefaultConfig,\n provideDaffAuthStateConfig,\n} from './config/public_api';\nimport { DaffAuthEffects } from './effects/auth.effects';\nimport { DaffAuthLoginEffects } from './effects/login.effects';\nimport { DaffAuthRegisterEffects } from './effects/register.effects';\nimport { DaffAuthResetPasswordEffects } from './effects/reset-password.effects';\nimport {\n DAFF_AUTH_STORE_FEATURE_KEY,\n daffAuthReducers,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTH_STORE_FEATURE_KEY, daffAuthReducers),\n EffectsModule.forFeature([\n DaffAuthEffects,\n DaffAuthLoginEffects,\n DaffAuthRegisterEffects,\n DaffAuthResetPasswordEffects,\n ]),\n ],\n})\nexport class DaffAuthStateModule {\n static withConfig(config: Partial<DaffAuthStateConfig> = {}): ModuleWithProviders<DaffAuthStateModule> {\n return {\n ngModule: DaffAuthStateModule,\n providers: [\n provideDaffAuthStateConfig({\n ...daffAuthStateDefaultConfig,\n ...config,\n }),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i3","i2"],"mappings":";;;;;;;;;;;;;;;IAIY,oBAOX;AAPD,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,0BAAA,CAAA,GAAA,8CAAyE,CAAA;AACzE,IAAA,mBAAA,CAAA,uBAAA,CAAA,GAAA,2CAAmE,CAAA;AACnE,IAAA,mBAAA,CAAA,sBAAA,CAAA,GAAA,0CAAiE,CAAA;AACjE,IAAA,mBAAA,CAAA,iBAAA,CAAA,GAAA,oCAAsD,CAAA;AACtD,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE,CAAA;AACrE,IAAA,mBAAA,CAAA,wBAAA,CAAA,GAAA,4CAAqE,CAAA;AACvE,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,GAO9B,EAAA,CAAA,CAAA,CAAA;AAED;;AAEG;MAC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AAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;oIAAnB,mBAAmB,EAAA,OAAA,EAAA,CAAA,EAAA,CAAA,kBAAA,EAAAA,IAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAVrB,OAAA,EAAA,CAAA;AACP,YAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;YACrE,aAAa,CAAC,UAAU,CAAC;gBACvB,eAAe;gBACf,oBAAoB;gBACpB,uBAAuB;gBACvB,4BAA4B;aAC7B,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;2FAEU,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,WAAW,CAAC,UAAU,CAAC,2BAA2B,EAAE,gBAAgB,CAAC;wBACrE,aAAa,CAAC,UAAU,CAAC;4BACvB,eAAe;4BACf,oBAAoB;4BACpB,uBAAuB;4BACvB,4BAA4B;yBAC7B,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Inject, InjectionToken } from '@angular/core';
3
- import { DaffPersistenceServiceToken } from '@daffodil/core';
3
+ import { DaffPersistenceServiceToken, DaffInheritableError } from '@daffodil/core';
4
4
  import { daffTransformErrorToStateError } from '@daffodil/core/state';
5
5
 
6
6
  class DaffAuthStorageService {
@@ -36,9 +36,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
36
36
  */
37
37
  const DAFF_AUTH_ERROR_MATCHER = new InjectionToken('DAFF_AUTH_ERROR_MATCHER', { factory: () => daffTransformErrorToStateError });
38
38
 
39
+ var DaffAuthErrorCodes;
40
+ (function (DaffAuthErrorCodes) {
41
+ DaffAuthErrorCodes["MISSING_TOKEN"] = "DAFF_AUTH_MISSING_TOKEN";
42
+ })(DaffAuthErrorCodes || (DaffAuthErrorCodes = {}));
43
+
44
+ /**
45
+ * An error thrown when an authenticated action was initiated
46
+ * but an auth token was not present.
47
+ */
48
+ class DaffAuthMissingTokenError extends DaffInheritableError {
49
+ constructor(message) {
50
+ super(message);
51
+ this.message = message;
52
+ this.code = DaffAuthErrorCodes.MISSING_TOKEN;
53
+ }
54
+ }
55
+
56
+ /**
57
+ * A mapping from error codes to error class constructors.
58
+ */
59
+ const DaffAuthErrorMap = {
60
+ [DaffAuthErrorCodes.MISSING_TOKEN]: DaffAuthMissingTokenError,
61
+ };
62
+
39
63
  /**
40
64
  * Generated bundle index. Do not edit.
41
65
  */
42
66
 
43
- export { DAFF_AUTH_ERROR_MATCHER, DaffAuthStorageService };
67
+ export { DAFF_AUTH_ERROR_MATCHER, DaffAuthErrorCodes, DaffAuthErrorMap, DaffAuthMissingTokenError, DaffAuthStorageService };
44
68
  //# sourceMappingURL=daffodil-auth.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-auth.mjs","sources":["../../../libs/auth/src/storage/auth-storage.service.ts","../../../libs/auth/src/injection-tokens/error-matcher.token.ts","../../../libs/auth/src/daffodil-auth.ts"],"sourcesContent":["import {\n Injectable,\n Inject,\n} from '@angular/core';\n\nimport {\n DaffPersistenceService,\n DaffPersistenceServiceToken,\n} from '@daffodil/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthStorageService {\n private readonly AUTH_STORAGE_TOKEN = 'DAFF_AUTH_TOKEN';\n\n constructor(@Inject(DaffPersistenceServiceToken) private storageService: DaffPersistenceService) {}\n\n getAuthToken(): string {\n return this.storageService.getItem(this.AUTH_STORAGE_TOKEN);\n }\n\n setAuthToken(value: string): void {\n this.storageService.setItem(this.AUTH_STORAGE_TOKEN, value);\n }\n\n removeAuthToken(): void {\n this.storageService.removeItem(this.AUTH_STORAGE_TOKEN);\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_AUTH_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_AUTH_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAaa,sBAAsB,CAAA;AAGjC,IAAA,WAAA,CAAyD,cAAsC,EAAA;QAAtC,IAAc,CAAA,cAAA,GAAd,cAAc,CAAwB;QAF9E,IAAkB,CAAA,kBAAA,GAAG,iBAAiB,CAAC;KAE2C;IAEnG,YAAY,GAAA;QACV,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KAC7D;AAED,IAAA,YAAY,CAAC,KAAa,EAAA;QACxB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;KAC7D;IAED,eAAe,GAAA;QACb,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACzD;;AAfU,mBAAA,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,kBAGb,2BAA2B,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAHpC,mBAAA,sBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cAFrB,MAAM,EAAA,CAAA,CAAA;2FAEP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;0BAIc,MAAM;2BAAC,2BAA2B,CAAA;;;ACZjD;;;AAGG;AACU,MAAA,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB,EACzB,EAAE,OAAO,EAAE,MAAM,8BAA8B,EAAE;;ACVnD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-auth.mjs","sources":["../../../libs/auth/src/storage/auth-storage.service.ts","../../../libs/auth/src/injection-tokens/error-matcher.token.ts","../../../libs/auth/src/errors/codes.enum.ts","../../../libs/auth/src/errors/missing-token.ts","../../../libs/auth/src/errors/map.ts","../../../libs/auth/src/daffodil-auth.ts"],"sourcesContent":["import {\n Injectable,\n Inject,\n} from '@angular/core';\n\nimport {\n DaffPersistenceService,\n DaffPersistenceServiceToken,\n} from '@daffodil/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthStorageService {\n private readonly AUTH_STORAGE_TOKEN = 'DAFF_AUTH_TOKEN';\n\n constructor(@Inject(DaffPersistenceServiceToken) private storageService: DaffPersistenceService) {}\n\n getAuthToken(): string {\n return this.storageService.getItem(this.AUTH_STORAGE_TOKEN);\n }\n\n setAuthToken(value: string): void {\n this.storageService.setItem(this.AUTH_STORAGE_TOKEN, value);\n }\n\n removeAuthToken(): void {\n this.storageService.removeItem(this.AUTH_STORAGE_TOKEN);\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_AUTH_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_AUTH_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","export enum DaffAuthErrorCodes {\n MISSING_TOKEN = 'DAFF_AUTH_MISSING_TOKEN',\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthErrorCodes } from './codes.enum';\n\n/**\n * An error thrown when an authenticated action was initiated\n * but an auth token was not present.\n */\nexport class DaffAuthMissingTokenError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthErrorCodes.MISSING_TOKEN;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { DaffAuthErrorCodes } from './codes.enum';\nimport { DaffAuthMissingTokenError } from './missing-token';\n\n/**\n * A mapping from error codes to error class constructors.\n */\nexport const DaffAuthErrorMap = {\n [DaffAuthErrorCodes.MISSING_TOKEN]: DaffAuthMissingTokenError,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAaa,sBAAsB,CAAA;AAGjC,IAAA,WAAA,CAAyD,cAAsC,EAAA;QAAtC,IAAc,CAAA,cAAA,GAAd,cAAc,CAAwB;QAF9E,IAAkB,CAAA,kBAAA,GAAG,iBAAiB,CAAC;KAE2C;IAEnG,YAAY,GAAA;QACV,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KAC7D;AAED,IAAA,YAAY,CAAC,KAAa,EAAA;QACxB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;KAC7D;IAED,eAAe,GAAA;QACb,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACzD;;AAfU,mBAAA,sBAAA,CAAA,IAAA,GAAA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;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daffodil/auth",
3
- "version": "0.57.0",
3
+ "version": "0.58.1",
4
4
  "description": "Reducers, State, Selectors, and Drivers for logging in and registering users.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,12 +18,12 @@
18
18
  "peerDependencies": {
19
19
  "@angular/common": "^13.0.0",
20
20
  "@angular/core": "^13.0.0",
21
- "@daffodil/core": "0.57.0",
21
+ "@daffodil/core": "0.58.1",
22
22
  "@ngrx/store": "^13.0.0",
23
23
  "rxjs": "7.5.5"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@daffodil/driver": "0.57.0"
26
+ "@daffodil/driver": "0.58.1"
27
27
  },
28
28
  "module": "fesm2015/daffodil-auth.mjs",
29
29
  "es2020": "fesm2020/daffodil-auth.mjs",
package/public_api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { DaffAuthStorageService } from './storage/auth-storage.service';
2
2
  export * from './models/public_api';
3
3
  export * from './injection-tokens/public_api';
4
+ export * from './errors/public_api';
@@ -16,4 +16,9 @@ export interface DaffAuthRoutingConfig {
16
16
  * Defaults to `'/'`.
17
17
  */
18
18
  logoutRedirectPath: string;
19
+ /**
20
+ * The path to which the user will be redirected when their auth token is present but invalid.
21
+ * Defaults to `'/'`.
22
+ */
23
+ tokenExpirationRedirectPath: string;
19
24
  }
@@ -1,5 +1,6 @@
1
1
  import { Router } from '@angular/router';
2
2
  import { Actions } from '@ngrx/effects';
3
+ import { DaffAuthActions, DaffAuthLoginActions, DaffAuthRegisterActions, DaffAuthResetPasswordActions } from '@daffodil/auth/state';
3
4
  import { DaffAuthRoutingConfig } from '../config/public_api';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
@@ -9,9 +10,10 @@ export declare class DaffAuthRedirectEffects {
9
10
  private actions$;
10
11
  private router;
11
12
  private config;
12
- constructor(actions$: Actions, router: Router, config: DaffAuthRoutingConfig);
13
+ constructor(actions$: Actions<DaffAuthLoginActions | DaffAuthActions | DaffAuthRegisterActions | DaffAuthResetPasswordActions>, router: Router, config: DaffAuthRoutingConfig);
13
14
  redirectAfterLoginOrRegister$: import("rxjs").Observable<never> & import("@ngrx/effects").CreateEffectMetadata;
14
15
  redirectAfterLogout$: import("rxjs").Observable<never> & import("@ngrx/effects").CreateEffectMetadata;
16
+ redirectAfterExpiration$: import("rxjs").Observable<never> & import("@ngrx/effects").CreateEffectMetadata;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthRedirectEffects, never>;
16
18
  static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthRedirectEffects>;
17
19
  }
@@ -1,14 +1,18 @@
1
1
  import { CanActivate, Router } from '@angular/router';
2
- import { Actions } from '@ngrx/effects';
2
+ import { Store } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
- import { DaffAuthFacade } from '@daffodil/auth/state';
4
+ import { DaffAuthStorageService } from '@daffodil/auth';
5
+ import { DaffAuthDriverTokenCheck } from '@daffodil/auth/driver';
6
+ import { ErrorTransformer } from '@daffodil/core/state';
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class GuestOnlyGuard implements CanActivate {
7
- private facade;
8
- private actions$;
9
+ private tokenCheck;
10
+ private storage;
9
11
  private router;
12
+ private store;
13
+ private errorMatcher;
10
14
  private redirectUrl;
11
- constructor(facade: DaffAuthFacade, actions$: Actions, router: Router, redirectUrl: string);
15
+ constructor(tokenCheck: DaffAuthDriverTokenCheck, storage: DaffAuthStorageService, router: Router, store: Store, errorMatcher: ErrorTransformer, redirectUrl: string);
12
16
  canActivate(): Observable<boolean>;
13
17
  private isUnauthenticated;
14
18
  static ɵfac: i0.ɵɵFactoryDeclaration<GuestOnlyGuard, never>;
@@ -1,14 +1,18 @@
1
1
  import { CanActivate, Router } from '@angular/router';
2
- import { Actions } from '@ngrx/effects';
2
+ import { Store } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
- import { DaffAuthFacade } from '@daffodil/auth/state';
4
+ import { DaffAuthStorageService } from '@daffodil/auth';
5
+ import { DaffAuthDriverTokenCheck } from '@daffodil/auth/driver';
6
+ import { ErrorTransformer } from '@daffodil/core/state';
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class MemberOnlyGuard implements CanActivate {
7
- private facade;
8
- private actions$;
9
+ private tokenCheck;
10
+ private storage;
9
11
  private router;
12
+ private store;
13
+ private errorMatcher;
10
14
  private redirectUrl;
11
- constructor(facade: DaffAuthFacade, actions$: Actions, router: Router, redirectUrl: string);
15
+ constructor(tokenCheck: DaffAuthDriverTokenCheck, storage: DaffAuthStorageService, router: Router, store: Store, errorMatcher: ErrorTransformer, redirectUrl: string);
12
16
  canActivate(): Observable<boolean>;
13
17
  private isAuthenticated;
14
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MemberOnlyGuard, never>;
@@ -1,35 +1,23 @@
1
1
  import { Action } from '@ngrx/store';
2
2
  import { DaffStateError } from '@daffodil/core/state';
3
3
  export declare enum DaffAuthActionTypes {
4
- AuthGuardCheckAction = "[@daffodil/auth] Auth Guard Check Action",
5
- AuthGuardCheckCompletionAction = "[@daffodil/auth] Auth Guard Check Completion Action",
6
4
  AuthStorageFailureAction = "[@daffodil/auth] Auth Storage Failure Action",
5
+ AuthGuardLogoutAction = "[@daffodil/auth] Auth Guard Logout Action",
7
6
  AuthServerSideAction = "[@daffodil/auth] Auth Server Side Action",
8
7
  AuthCheckAction = "[@daffodil/auth] Auth Check Action",
9
8
  AuthCheckSuccessAction = "[@daffodil/auth] Auth Check Success Action",
10
- AuthCheckFailureAction = "[@daffodil/auth] Auth Check Failure Action",
11
- AuthCompleteAction = "[@daffodil/auth] Auth Complete Action",
12
- AuthRevokeAction = "[@daffodil/auth] Auth Revoke Action"
13
- }
14
- /**
15
- * An action triggered by guards to initialize an auth check request.
16
- */
17
- export declare class DaffAuthGuardCheck implements Action {
18
- readonly type = DaffAuthActionTypes.AuthGuardCheckAction;
19
- }
20
- /**
21
- * An action triggered on the completion of a guard token check.
22
- */
23
- export declare class DaffAuthGuardCheckCompletion implements Action {
24
- result: boolean;
25
- readonly type = DaffAuthActionTypes.AuthGuardCheckCompletionAction;
26
- constructor(result: boolean);
9
+ AuthCheckFailureAction = "[@daffodil/auth] Auth Check Failure Action"
27
10
  }
28
11
  export declare class DaffAuthStorageFailure implements Action {
29
12
  errorMessage: DaffStateError;
30
13
  readonly type = DaffAuthActionTypes.AuthStorageFailureAction;
31
14
  constructor(errorMessage: DaffStateError);
32
15
  }
16
+ export declare class DaffAuthGuardLogout implements Action {
17
+ errorMessage: DaffStateError;
18
+ readonly type = DaffAuthActionTypes.AuthGuardLogoutAction;
19
+ constructor(errorMessage: DaffStateError);
20
+ }
33
21
  export declare class DaffAuthServerSide implements Action {
34
22
  errorMessage: DaffStateError;
35
23
  readonly type = DaffAuthActionTypes.AuthServerSideAction;
@@ -59,18 +47,4 @@ export declare class DaffAuthCheckFailure implements Action {
59
47
  readonly type = DaffAuthActionTypes.AuthCheckFailureAction;
60
48
  constructor(errorMessage: DaffStateError);
61
49
  }
62
- /**
63
- * An action triggered when the user authentication flow is completed.
64
- * The auth token is in storage at this point.
65
- */
66
- export declare class DaffAuthComplete implements Action {
67
- readonly type = DaffAuthActionTypes.AuthCompleteAction;
68
- }
69
- /**
70
- * An action triggered when the user auth token is revoked.
71
- * The auth token has been removed from storage at this point.
72
- */
73
- export declare class DaffAuthRevoke implements Action {
74
- readonly type = DaffAuthActionTypes.AuthRevokeAction;
75
- }
76
- export declare type DaffAuthActions = DaffAuthGuardCheckCompletion | DaffAuthGuardCheck | DaffAuthStorageFailure | DaffAuthServerSide | DaffAuthCheck | DaffAuthCheckSuccess | DaffAuthCheckFailure | DaffAuthComplete | DaffAuthRevoke;
50
+ export declare type DaffAuthActions = DaffAuthStorageFailure | DaffAuthGuardLogout | DaffAuthServerSide | DaffAuthCheck | DaffAuthCheckSuccess | DaffAuthCheckFailure;
@@ -47,7 +47,9 @@ export declare class DaffResetPassword<T extends DaffAuthResetPasswordInfo = Daf
47
47
  * An action triggered upon a successful logout.
48
48
  */
49
49
  export declare class DaffResetPasswordSuccess implements Action {
50
+ token?: string;
50
51
  readonly type = DaffAuthResetPasswordActionTypes.ResetPasswordSuccessAction;
52
+ constructor(token?: string);
51
53
  }
52
54
  /**
53
55
  * An action triggered upon a failed logout request.