UNPKG

@accounts/types

Version:
11 lines (10 loc) 491 B
import { type User } from './user'; import { type DatabaseInterfaceUser } from './user/database-interface'; import { type DatabaseInterfaceSessions } from './session/database-interface'; export interface AuthenticationService<CustomUser extends User = User> { server: any; serviceName: string; setUserStore(store: DatabaseInterfaceUser<CustomUser>): void; setSessionsStore(store: DatabaseInterfaceSessions): void; authenticate(params: any): Promise<CustomUser | null>; }