The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
client code added for FB login
Mark Burggraffc1e9f6eb899
diff --git a/web/docs/guides2/auth-facebook.mdx b/web/docs/guides2/auth-facebook.mdxindex 2ae6abd9d16..ee8327c5e84 100644--- a/web/docs/guides2/auth-facebook.mdx+++ b/web/docs/guides2/auth-facebook.mdx@@ -91,6 +91,23 @@ const { user, session, error } = await supabase.auth.signIn({})```+Just put this code in a function and create a button or a link or any other UI element to call the function.++```js+function signInWithFacebook() {+ const { user, session, error } = await supabase.auth.signIn({+ provider: 'facebook'+ });+}+```++To log out:++```js+function signout() {+ const { error } = await supabase.auth.signOut();+}+```## Resources