BasicAuthOptionsType
Это содержимое пока не доступно на вашем языке.
BasicAuthOptionsType =
object
Defined in: src/http/middleware/BasicAuthOptions.ts:5
Plain settings shape for HTTP Basic auth. Provide users OR validate.
Properties
Section titled “Properties”realm?
Section titled “realm?”
readonlyoptionalrealm?:string
Defined in: src/http/middleware/BasicAuthOptions.ts:11
Realm advertised in WWW-Authenticate on 401. Default 'actor-ts'.
users?
Section titled “users?”
readonlyoptionalusers?:Readonly<Record<string,string>>
Defined in: src/http/middleware/BasicAuthOptions.ts:7
username→password map (constant-time compared).
validate?
Section titled “validate?”
readonlyoptionalvalidate?: (user,pass) =>boolean|Promise<boolean>
Defined in: src/http/middleware/BasicAuthOptions.ts:9
Custom credential check (e.g. against a store).
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”boolean | Promise<boolean>
