interface BasicAuthAddon { basicAuth<T, C, R>(this: T & Wretch<T, C, R>,
username: string,
password: string): this; } Methods
basicAuth
- basicAuth<T, C, R>(this, username, password): this
Parameters
- this: T & Wretch<T, C, R>
- username: string
- password: string
Returns this
Sets the.
Additionally, allows using URLs with credentials in them.
Authorization
header toBasic
+