1 2 3 4 5 6 7 8 9 10 11 12 13 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;