libs/auth/driver/src/interfaces/auth-service.interface.ts
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');