@mercury-labs/auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
8 lines (7 loc) • 382 B
TypeScript
import { Observable } from 'rxjs';
import { AuthRepository, IAuthUserEntity, PasswordHasherService } from '../../domain';
export declare class SampleAuthRepository implements AuthRepository {
protected readonly hasher: PasswordHasherService;
constructor(hasher: PasswordHasherService);
getAuthUserByUsername(username: string): Observable<IAuthUserEntity | undefined>;
}