Skip to content

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

fix: specify which auth0 package to import for tpa (#29342)

Joel Lee10ba4999cd33
diff --git a/apps/docs/content/guides/auth/third-party/auth0.mdx b/apps/docs/content/guides/auth/third-party/auth0.mdx
index bf68d282d3c..097dd6cabe9 100644
--- a/apps/docs/content/guides/auth/third-party/auth0.mdx
+++ b/apps/docs/content/guides/auth/third-party/auth0.mdx
@@ -21,6 +21,15 @@ Auth0 can be used as a third-party authentication provider alongside Supabase Au
```typescript
import { createClient } from '@supabase/supabase-js'
+import Auth0Client from '@auth0/auth0-spa-js'
+
+const auth0 = new Auth0Client({
+ domain: '<AUTH0_DOMAIN>',
+ clientId: '<AUTH0_CLIENT_ID>',
+ authorizationParams: {
+ redirect_uri: '<MY_CALLBACK_URL>',
+ },
+})
const supabase = createClient('https://<supabase-project>.supabase.co', 'SUPABASE_ANON_KEY', {
accessToken: async () => {