@studiohyperdrive/ngx-auth
Version:
A library of core authentication functionality used with @studiohyperdrive/types-auth.
17 lines (16 loc) • 768 B
TypeScript
import { AuthenticationResponse } from '@studiohyperdrive/types-auth';
import { Subject } from 'rxjs';
import { NgxAuthenticationStatus } from '../types';
/**
* Returns a mock version of the authentication service
*
* @param configuration - The configuration of the mock
*/
export declare const NgxAuthenticationServiceMock: <AuthenticationResponseType extends AuthenticationResponse<any> = AuthenticationResponse<any, import("@studiohyperdrive/types-auth").AuthenticatedUserSession<string, string>, any>>(configuration: {
hasFeatureSpy: unknown;
hasPermissionSpy: unknown;
signInSpy: unknown;
signOutSpy: unknown;
authenticationResponse: Subject<AuthenticationResponseType>;
hasAuthenticated: Subject<NgxAuthenticationStatus>;
}) => any;