From a5601c39d583b366bc3cd90cd1e64c995fc2d160 Mon Sep 17 00:00:00 2001 From: Jack Humphries Date: Mon, 3 Nov 2025 16:45:56 +0000 Subject: [PATCH] Added a docs page to show option --- docs/content/docs/plugins/2fa.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/plugins/2fa.mdx b/docs/content/docs/plugins/2fa.mdx index 27f727193e..fb4980763a 100644 --- a/docs/content/docs/plugins/2fa.mdx +++ b/docs/content/docs/plugins/2fa.mdx @@ -92,7 +92,11 @@ type enableTwoFactor = { /** * The user's password */ - password: string = "secure-password" + password: string = "secure-password", + /** + * Whether to enable the OTP method or TOTP method (uses the TOTP method by default) + */ + twoFactorMethod?: "otp" | "totp" = "totp", /** * An optional custom issuer for the TOTP URI. Defaults to app-name defined in your auth config. */