Type alias LoginResult

LoginResult: {
    status: "success";
} | {
    status: "email";
} | {
    status: "2fa";
    code: string;
} | ErrorResult

The result of a login attempt. This can be either "success", in which case the client can be understood to be "authenticated"; "error", in which case there was an error logging in; "2fa", indicating that the user should be prompted for a 2fa TOTP; or "email", indicating that the user should check their email to complete login via email link.

Generated using TypeDoc