libs/auth/state/src/injection-tokens/unauthenticated/hooks.token.ts
import { createMultiInjectionToken } from '@daffodil/core';
import { DaffAuthUnauthenticatedHook } from './hook.type';
export const {
/**
* A token to hold the unauthenticated hooks.
* See {@link DaffAuthUnauthenticatedHook}.
*
* Prefer using {@link daffAuthProvideUnauthenticatedHooks}.
*/
token: DAFF_AUTH_UNAUTHENTICATED_HOOKS,
/**
* Provides {@link DAFF_AUTH_UNAUTHENTICATED_HOOKS}.
*
* ```ts
* providers: [
* ...daffAuthProvideUnauthenticatedHooks(
* myReducer1,
* myReducer2
* )
* ]
* ```
*/
provider: daffAuthProvideUnauthenticatedHooks,
} = createMultiInjectionToken<DaffAuthUnauthenticatedHook>('DAFF_AUTH_UNAUTHENTICATED_HOOKS');