From 5be55a6fa6f6225827bbd4b5e138b2b26c470a57 Mon Sep 17 00:00:00 2001 From: dswbx Date: Fri, 7 Nov 2025 08:51:44 +0100 Subject: [PATCH] clean up error, it's prefixed with the plugin name already --- app/src/plugins/auth/email-otp.plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/plugins/auth/email-otp.plugin.ts b/app/src/plugins/auth/email-otp.plugin.ts index 9590def..48a913e 100644 --- a/app/src/plugins/auth/email-otp.plugin.ts +++ b/app/src/plugins/auth/email-otp.plugin.ts @@ -118,8 +118,8 @@ export function emailOTP({ ), onBuilt: async () => { const auth = app.module.auth; - invariant(auth && auth.enabled === true, "[OTP Plugin]: Auth is not enabled"); - invariant(app.drivers?.email, "[OTP Plugin]: Email driver is not registered"); + invariant(auth && auth.enabled === true, "Auth is not enabled"); + invariant(app.drivers?.email, "Email driver is not registered"); const generateCode = _generateCode ?? (() => Math.floor(100000 + Math.random() * 900000).toString());