Variable basicCredentialOf
basicCredentialOf: (
req: any,
) =>
| {
basic?: undefined;
malformed?: undefined;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed?: undefined;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed: boolean;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed?: undefined;
password: any;
present: boolean;
username: any;
} = ...
Type Declaration
-
- (
req: any,
):
| {
basic?: undefined;
malformed?: undefined;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed?: undefined;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed: boolean;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed?: undefined;
password: any;
present: boolean;
username: any;
}
-
Returns
| {
basic?: undefined;
malformed?: undefined;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed?: undefined;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed: boolean;
password?: undefined;
present: boolean;
username?: undefined;
}
| {
basic: boolean;
malformed?: undefined;
password: any;
present: boolean;
username: any;
}
{ present, basic, username, password }, or malformed for a
Basic credential that does not decode
Reads the Authorization header without believing it: which scheme, and for Basic the name and password.