BasicAuthOptionsBuilder
이 콘텐츠는 아직 번역되지 않았습니다.
Defined in: src/http/middleware/BasicAuthOptions.ts:15
Fluent builder for BasicAuthOptionsType.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BasicAuthOptionsBuilder():
BasicAuthOptionsBuilder
Returns
Section titled “Returns”BasicAuthOptionsBuilder
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”build()
Section titled “build()”build():
Partial<T>
Defined in: src/util/OptionsBuilder.ts:51
Snapshot the set fields as an independent Partial<T> (own props only).
Returns
Section titled “Returns”Partial<T>
Inherited from
Section titled “Inherited from”withRealm()
Section titled “withRealm()”withRealm(
realm):this
Defined in: src/http/middleware/BasicAuthOptions.ts:25
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
withUsers()
Section titled “withUsers()”withUsers(
users):this
Defined in: src/http/middleware/BasicAuthOptions.ts:19
Parameters
Section titled “Parameters”Readonly<Record<string, string>>
Returns
Section titled “Returns”this
withValidate()
Section titled “withValidate()”withValidate(
validate):this
Defined in: src/http/middleware/BasicAuthOptions.ts:22
Parameters
Section titled “Parameters”validate
Section titled “validate”(user, pass) => boolean | Promise<boolean>
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():BasicAuthOptionsBuilder
Defined in: src/http/middleware/BasicAuthOptions.ts:16
Returns
Section titled “Returns”BasicAuthOptionsBuilder
