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;