UNPKG

@nephele/authenticator-none

Version:

Unrestricted authenticator for the Nephele WebDAV server.

11 lines (10 loc) 487 B
import type { Request } from 'express'; import type { Authenticator as AuthenticatorInterface, AuthResponse as NepheleAuthResponse } from 'nephele'; import User from './User.js'; export type AuthResponse = NepheleAuthResponse<any, { user: User; }>; export default class Authenticator implements AuthenticatorInterface { authenticate(_request: Request, _response: AuthResponse): Promise<User>; cleanAuthentication(_request: Request, _response: AuthResponse): Promise<void>; }