From e68819d97ada081a21f054cb4d615283518d98e3 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 25 Mar 2023 20:36:54 -0400 Subject: oapi: add missing 2fa types to login --- src/util/schemas/LoginResponse.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/util/schemas/LoginResponse.ts (limited to 'src/util') diff --git a/src/util/schemas/LoginResponse.ts b/src/util/schemas/LoginResponse.ts new file mode 100644 index 00000000..faf3f769 --- /dev/null +++ b/src/util/schemas/LoginResponse.ts @@ -0,0 +1,14 @@ +import { TokenResponse } from "./responses"; + +export interface MFAResponse { + ticket: string; + mfa: true; + sms: false; // TODO + token: null; +} + +export interface WebAuthnResponse extends MFAResponse { + webauthn: string; +} + +export type LoginResponse = TokenResponse | MFAResponse | WebAuthnResponse; -- cgit 1.5.1