clean up error, it's prefixed with the plugin name already

This commit is contained in:
dswbx
2025-11-07 08:51:44 +01:00
parent 341eb13425
commit 5be55a6fa6

View File

@@ -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());