sessionVerdict: (
session: any,
req: any,
) =>
| {
code: string;
error: string;
ok: boolean;
status: number;
username?: undefined;
why: string;
}
| {
code?: undefined;
error?: undefined;
ok: boolean;
status?: undefined;
username: string;
why?: undefined;
} = ...
Type Declaration
-
- (
session: any,
req: any,
):
| {
code: string;
error: string;
ok: boolean;
status: number;
username?: undefined;
why: string;
}
| {
code?: undefined;
error?: undefined;
ok: boolean;
status?: undefined;
username: string;
why?: undefined;
}
-
Returns
| {
code: string;
error: string;
ok: boolean;
status: number;
username?: undefined;
why: string;
}
| {
code?: undefined;
error?: undefined;
ok: boolean;
status?: undefined;
username: string;
why?: undefined;
}
{ ok: true, username } or { ok: false, status, code, error, why }
Decides whether a relying-party session's person may use the debugger now.