allAuthApi: {
    getSession: () => Promise<AxiosResponse<any, any, {}>>;
    signup: (
        email: string,
        password: string,
    ) => Promise<AxiosResponse<any, any, {}>>;
    login: (
        email: string,
        password: string,
    ) => Promise<AxiosResponse<any, any, {}>>;
    requestCode: (email: string) => Promise<AxiosResponse<any, any, {}>>;
    confirmCode: (code: string) => Promise<AxiosResponse<any, any, {}>>;
    logout: () => Promise<AxiosResponse<any, any, {}>>;
    verifyEmail: (key: string) => Promise<AxiosResponse<any, any, {}>>;
    requestPasswordReset: (
        email: string,
    ) => Promise<AxiosResponse<any, any, {}>>;
    resetPassword: (
        key: string,
        password: string,
    ) => Promise<AxiosResponse<any, any, {}>>;
    getConfig: () => Promise<AxiosResponse<any, any, {}>>;
    getEmails: () => Promise<AxiosResponse<any, any, {}>>;
    addEmail: (email: string) => Promise<AxiosResponse<any, any, {}>>;
    deleteEmail: (email: string) => Promise<AxiosResponse<any, any, {}>>;
    setPrimaryEmail: (email: string) => Promise<AxiosResponse<any, any, {}>>;
    changePassword: (
        currentPassword: null | string,
        newPassword: string,
    ) => Promise<AxiosResponse<any, any, {}>>;
    getTotpStatus: () => Promise<AxiosResponse<any, any, {}>>;
    activateTotp: () => Promise<AxiosResponse<any, any, {}>>;
    confirmTotp: (code: string) => Promise<AxiosResponse<any, any, {}>>;
    deactivateTotp: () => Promise<AxiosResponse<any, any, {}>>;
    getRecoveryCodes: () => Promise<AxiosResponse<any, any, {}>>;
    regenerateRecoveryCodes: () => Promise<AxiosResponse<any, any, {}>>;
    authenticate2fa: (code: string) => Promise<AxiosResponse<any, any, {}>>;
    authenticateRecovery: (
        code: string,
    ) => Promise<AxiosResponse<any, any, {}>>;
    reauthenticate: (password: string) => Promise<AxiosResponse<any, any, {}>>;
} = ...

Type declaration

  • getSession: () => Promise<AxiosResponse<any, any, {}>>
  • signup: (email: string, password: string) => Promise<AxiosResponse<any, any, {}>>
  • login: (email: string, password: string) => Promise<AxiosResponse<any, any, {}>>
  • requestCode: (email: string) => Promise<AxiosResponse<any, any, {}>>
  • confirmCode: (code: string) => Promise<AxiosResponse<any, any, {}>>
  • logout: () => Promise<AxiosResponse<any, any, {}>>
  • verifyEmail: (key: string) => Promise<AxiosResponse<any, any, {}>>
  • requestPasswordReset: (email: string) => Promise<AxiosResponse<any, any, {}>>
  • resetPassword: (key: string, password: string) => Promise<AxiosResponse<any, any, {}>>
  • getConfig: () => Promise<AxiosResponse<any, any, {}>>
  • getEmails: () => Promise<AxiosResponse<any, any, {}>>
  • addEmail: (email: string) => Promise<AxiosResponse<any, any, {}>>
  • deleteEmail: (email: string) => Promise<AxiosResponse<any, any, {}>>
  • setPrimaryEmail: (email: string) => Promise<AxiosResponse<any, any, {}>>
  • changePassword: (
        currentPassword: null | string,
        newPassword: string,
    ) => Promise<AxiosResponse<any, any, {}>>
  • getTotpStatus: () => Promise<AxiosResponse<any, any, {}>>
  • activateTotp: () => Promise<AxiosResponse<any, any, {}>>
  • confirmTotp: (code: string) => Promise<AxiosResponse<any, any, {}>>
  • deactivateTotp: () => Promise<AxiosResponse<any, any, {}>>
  • getRecoveryCodes: () => Promise<AxiosResponse<any, any, {}>>
  • regenerateRecoveryCodes: () => Promise<AxiosResponse<any, any, {}>>
  • authenticate2fa: (code: string) => Promise<AxiosResponse<any, any, {}>>
  • authenticateRecovery: (code: string) => Promise<AxiosResponse<any, any, {}>>
  • reauthenticate: (password: string) => Promise<AxiosResponse<any, any, {}>>