/opt/canhelp/node_modules/better-auth/dist/plugins/two-factor
NameSizeModeActions
backup-codes/-0755rm
otp/-0755rm
totp/-0755rm
client.d.mts26770644editdlrm
client.mjs11410644editdlrm
client.mjs.map28640644editdlrm
constant.mjs3310644editdlrm
constant.mjs.map3910644editdlrm
error-code.d.mts11340644editdlrm
error-code.mjs7040644editdlrm
error-code.mjs.map9170644editdlrm
index.d.mts206320644editdlrm
index.mjs96180644editdlrm
index.mjs.map206870644editdlrm
schema.d.mts7780644editdlrm
schema.mjs5990644editdlrm
schema.mjs.map12860644editdlrm
types.d.mts22090644editdlrm
utils.mjs4270644editdlrm
utils.mjs.map6830644editdlrm
verify-two-factor.mjs37340644editdlrm
verify-two-factor.mjs.map68270644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/plugins/two-factor/client.d.mts (2677B)
import { BackupCodeOptions, backupCode2fa, generateBackupCodes, getBackupCodes, verifyBackupCode } from "./backup-codes/index.mjs"; import { OTPOptions, otp2fa } from "./otp/index.mjs"; import { TOTPOptions, totp2fa } from "./totp/index.mjs"; import { TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor } from "./types.mjs"; import { TWO_FACTOR_ERROR_CODES } from "./error-code.mjs"; import { twoFactor } from "./index.mjs"; import * as _better_auth_core_utils_error_codes0 from "@better-auth/core/utils/error-codes"; import * as _better_fetch_fetch0 from "@better-fetch/fetch"; //#region src/plugins/two-factor/client.d.ts declare const twoFactorClient: (options?: { /** * the page to redirect if a user needs to verify * their two factor * * @warning This causes a full page reload when used. */ twoFactorPage?: string; /** * a redirect function to call if a user needs to verify * their two factor */ onTwoFactorRedirect?: () => void | Promise; } | undefined) => { id: "two-factor"; $InferServerPlugin: ReturnType; atomListeners: { matcher: (path: string) => boolean; signal: "$sessionSignal"; }[]; pathMethods: { "/two-factor/disable": "POST"; "/two-factor/enable": "POST"; "/two-factor/send-otp": "POST"; "/two-factor/generate-backup-codes": "POST"; "/two-factor/get-totp-uri": "POST"; "/two-factor/verify-totp": "POST"; "/two-factor/verify-otp": "POST"; "/two-factor/verify-backup-code": "POST"; }; fetchPlugins: { id: string; name: string; hooks: { onSuccess(context: _better_fetch_fetch0.SuccessContext): Promise; }; }[]; $ERROR_CODES: { OTP_NOT_ENABLED: _better_auth_core_utils_error_codes0.RawError<"OTP_NOT_ENABLED">; OTP_HAS_EXPIRED: _better_auth_core_utils_error_codes0.RawError<"OTP_HAS_EXPIRED">; TOTP_NOT_ENABLED: _better_auth_core_utils_error_codes0.RawError<"TOTP_NOT_ENABLED">; TWO_FACTOR_NOT_ENABLED: _better_auth_core_utils_error_codes0.RawError<"TWO_FACTOR_NOT_ENABLED">; BACKUP_CODES_NOT_ENABLED: _better_auth_core_utils_error_codes0.RawError<"BACKUP_CODES_NOT_ENABLED">; INVALID_BACKUP_CODE: _better_auth_core_utils_error_codes0.RawError<"INVALID_BACKUP_CODE">; INVALID_CODE: _better_auth_core_utils_error_codes0.RawError<"INVALID_CODE">; TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: _better_auth_core_utils_error_codes0.RawError<"TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE">; INVALID_TWO_FACTOR_COOKIE: _better_auth_core_utils_error_codes0.RawError<"INVALID_TWO_FACTOR_COOKIE">; }; }; //#endregion export { twoFactorClient }; //# sourceMappingURL=client.d.mts.map