The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Adds example for createUser
Copple83553cd0f54b
diff --git a/web/spec/supabase.yml b/web/spec/supabase.ymlindex f2eb0030e23..56c133be924 100644--- a/web/spec/supabase.yml+++ b/web/spec/supabase.yml@@ -781,6 +781,7 @@ pages:notes: |- Requires a `service_role` key.- This function should be called on a server. Never expose your `service_role` key in the browser.+ - If you do not provide the `email_confirm` and `phone_confirm` options to this function, both will default to false.examples:- name: Create a new user.isSpotlight: true@@ -789,10 +790,26 @@ pages:const { data: user, error } = await supabase.auth.api.createUser({email: '[email protected]',password: 'password',- data: { name: 'Yoda' },+ data: { name: 'Yoda' }+ })+ - name: Auto-confirm email.+ isSpotlight: true+ js: |+ ```js+ const { data: user, error } = await supabase.auth.api.createUser({+ email: '[email protected]',email_confirm: true})```+ - name: Auto-confirm phone.+ isSpotlight: true+ js: |+ ```js+ const { data: user, error } = await supabase.auth.api.createUser({+ phone: '1234567890',+ phone_confirm: true+ })+ ```auth.api.deleteUser():title: 'deleteUser()'