Skip to content

Comandos úteis

flowingts / BasicAuthOptions

Interface: BasicAuthOptions<U> ​

Definido em: src/middlewares/auth.ts:29

Parâmetros de tipo ​

U ​

U

Propriedades ​

realm? ​

optional realm?: 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 ​

Context

Retorna ​

Verified<U> | Promise<Verified<U>>

Licença ISC.