From 1402297f572adcdedcd988ccefbd3be6f078289c Mon Sep 17 00:00:00 2001 From: rizky Date: Tue, 11 Mar 2025 03:31:51 -0700 Subject: [PATCH] fix --- session/type.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/session/type.ts b/session/type.ts index e4614d3..ad318b0 100755 --- a/session/type.ts +++ b/session/type.ts @@ -87,8 +87,16 @@ export type ServerContext = { }; }; -export type SessionAuth = { - method: "user-pass"; - username: string; - password: string; -} & Record; +export type SessionAuth = ( + | { + method: "user-pass"; + username: string; + password: string; + } + | { + method: "user-otp"; + uid: string; + otp: string; + } +) & + Record;