Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outdated router recommendation in the doc https://supabase.com/partners/integrations/clerk #26620

Open
adamchenwei opened this issue May 21, 2024 · 2 comments
Labels
auth All thing Supabase Auth related documentation Improvements or additions to documentation internal-fix Can only be fixed internally

Comments

@adamchenwei
Copy link
Contributor

It still suggesting the older page router, plz change it to app router or add app router setup option. thank you!
Its under "Step 4: Set up Clerk Provider"

@adamchenwei adamchenwei added the documentation Improvements or additions to documentation label May 21, 2024
@Hallidayo Hallidayo added the internal-fix Can only be fixed internally label May 21, 2024
@saltcod saltcod added the auth All thing Supabase Auth related label May 22, 2024
@Xavier-IV
Copy link
Contributor

Xavier-IV commented Jun 5, 2024

Hi, I would like to add on this.

In "Step 5: Set auth token with Supabase", it is mentioned to use supabase.auth.setAuth(token).

Unfortunately this method is not available anymore, and I'm not sure what's the next step.

image

The error I'm seeing in my editor:
image

I've used both Supabase and Clerk's documentation on this integration, none are working at the moment.

Edit: The docs stated this setAuth is now deprecated. Would appreciate on updating this, as I still haven't found a way yet to set this up.

Edit 2:
The official docs in Clerk is the solution:
https://clerk.com/docs/integrations/databases/supabase#fetch-supabase-data-in-your-code

Only caveat is you need to import useRef and useState from react, otherwise the token would be undefined as it wasn't hydrated yet.

@Xavier-IV

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth All thing Supabase Auth related documentation Improvements or additions to documentation internal-fix Can only be fixed internally
Projects
Status: No status
Development

No branches or pull requests

4 participants