The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add MFA example
Coppleb52a73698bab
diff --git a/apps/docs/pages/guides/auth/row-level-security.mdx b/apps/docs/pages/guides/auth/row-level-security.mdxindex ddc4711c67b..29a9e020ccc 100644--- a/apps/docs/pages/guides/auth/row-level-security.mdx+++ b/apps/docs/pages/guides/auth/row-level-security.mdx@@ -271,6 +271,20 @@ for update using ();```+### Using Multi-factor Authentication++RLS can be [combined with Multi-Factor Authentication](/docs/guides/auth/auth-mfa#enforce-rules-for-mfa-logins) in Supabase Auth. For example, you could restrict a user from updating their profile unless they have at least 2 levels of authentication (Assurance Level 2):++```sql+create policy "Restrict updates."+on profiles+as restrictive+to authenticated+for update using (+ using (auth.jwt()->>'aal' = 'aal2')+);+```+export const Page = ({ children }) => <Layout meta={meta} children={children} />export default Page