flowingts / BasicAuthOptions
Interface: BasicAuthOptions<U>
Definido em: src/middlewares/auth.ts:29
Parâmetros de tipo
U
U
Propriedades
realm?
optionalrealm?:string
Definido em: src/middlewares/auth.ts:33
Padrão: 'api'.
verify
verify: (
username,password,ctx) =>Verified<U> |Promise<Verified<U>>
Definido em: src/middlewares/auth.ts:31
Confere usuário e senha (compare com safeEqual) e devolve o usuário (ou true).
Parâmetros
username
string
password
string
ctx
Retorna
Verified<U> | Promise<Verified<U>>