This commit is contained in:
rizky 2025-03-11 03:31:51 -07:00
parent 5901e32479
commit 1402297f57
1 changed files with 13 additions and 5 deletions

View File

@ -87,8 +87,16 @@ export type ServerContext = {
};
};
export type SessionAuth = {
method: "user-pass";
username: string;
password: string;
} & Record<string, any>;
export type SessionAuth = (
| {
method: "user-pass";
username: string;
password: string;
}
| {
method: "user-otp";
uid: string;
otp: string;
}
) &
Record<string, any>;