graycoreio/daffodil

View on GitHub
libs/auth/driver/src/interfaces/auth-service.interface.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Observable } from 'rxjs';

import { createSingletonInjectionToken } from '@daffodil/core';

export interface DaffAuthServiceInterface {
  /**
   * Checks the validity of an auth token.
   */
  check(): Observable<void>;
}

export const {
  token: DaffAuthDriver,
  /**
   * Provider function for {@link DaffAuthDriver}.
   */
  provider: provideDaffAuthDriver,
} = createSingletonInjectionToken<DaffAuthServiceInterface>('DaffAuthDriver');