Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix security advisor check on OTP length (#26604)

Joshen Lim3558dc0c619a
diff --git a/apps/studio/pages/project/[ref]/database/security-advisor.tsx b/apps/studio/pages/project/[ref]/database/security-advisor.tsx
index da4641b7686..1321cc34799 100644
--- a/apps/studio/pages/project/[ref]/database/security-advisor.tsx
+++ b/apps/studio/pages/project/[ref]/database/security-advisor.tsx
@@ -78,7 +78,7 @@ const ProjectLints: NextPageWithLayout = () => {
})
}
- if (authConfig.EXTERNAL_PHONE_ENABLED && authConfig.SMS_OTP_LENGTH <= 6) {
+ if (authConfig.EXTERNAL_PHONE_ENABLED && authConfig.SMS_OTP_LENGTH < 6) {
clientLints.push({
name: 'auth_otp_short_length',
level: 'WARN',