graycoreio/daffodil

View on GitHub
libs/auth/state/src/config/token.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createConfigInjectionToken } from '@daffodil/core';

import { daffAuthStateDefaultConfig } from './default';
import { DaffAuthStateConfig } from './type';

export const {
  token: DAFF_AUTH_STATE_CONFIG,
  /**
   * Provider function for {@link DAFF_AUTH_STATE_CONFIG}.
   */
  provider: provideDaffAuthStateConfig,
} = createConfigInjectionToken<DaffAuthStateConfig>(daffAuthStateDefaultConfig, 'DAFF_AUTH_STATE_CONFIG');