-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update Clerk import in decoder #6685
Update Clerk import in decoder #6685
Conversation
@stephenhandley good to see you! |
Awesome thanks @noire-munich good to see you too! |
Just a heads up here 🙂 I merged #5985 about an hour ago. The clerk decoder now lives in https://github.com/redwoodjs/redwood/blob/main/packages/auth-providers-api/src/clerk/decoder.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since decoupled auth has been merged the file has changed location, please check this comment
#6685 (comment)
@noire-munich @Tobbe ok just moved the changes to the new file path |
We also have this PR that seems to be making a similar change. Which one should we go with? #6719 |
@stephenhandley I'm holding my approval until either this PR or this one gets everything we feel we'd need. |
@stephenhandley Thanks for submitting this. @noire-munich The PRs are basically the same, fixing a backward incompatible change we made in You can merge either of them. |
@noire-munich Any update on this? We'd love to be able to use the latest version of Clerk with Redwood. |
@noire-munich can we just approve this one then, it seems @SokratisVidros is fine with it and it doesn't use instance paths |
@stephenhandley I've approved this, if you'd like to bump before we merge it would be great, otherwise we'll use the other PR for that. |
Cool. I am closing mine. |
Can we merge? |
I've confirmed that this fixes the require call for the decoder. Still seems like we have a problem with our Clerk implementation though. I'll try to merge this PR, and then I'll submit a new PR for fixing the new issue I found. (Navigating to a page that requires that you're logged in prints "Please wrap your auth provider with |
…o rc-service-caching * 'rc-service-caching' of github.com:redwoodjs/redwood: chore: tweak release script for publishing from the next branch (#6745) Okta: Add packages to setup script (#6732) Azure setup auth: Install and import all needed packages (#6736) Setup auth: Update goTrue (#6733) Auth0 setup: Install correct packages (#6734) nhost auth: Add missing packages (#6742) Add missing packages to magicLink setup (#6741) supertokens setup auth: Add missing RW packages (#6744) Update Clerk import in decoder (#6685) Missing packages for Ethereum auth setup (#6740) supabase auth setup: Add missing rw packages (#6743) fix(Supabase): Set Supabase webPackage to 1.35.7 (#6739)
* update clerk import in decoder * wrong import path Co-authored-by: Tobbe Lundberg <[email protected]>
* update clerk import in decoder * wrong import path Co-authored-by: Tobbe Lundberg <[email protected]>
* update clerk import in decoder * wrong import path Co-authored-by: Tobbe Lundberg <[email protected]>
We ran into the following error when trying to use Clerk with Redwood.
We had a dep of
@clerk/clerk-sdk-node
of 4.4.0I believe what was at issue are the following lines in the decoder:
https://github.com/redwoodjs/redwood/blame/main/packages/api/src/auth/decoders/clerk.ts#L5-L7
Clerk version 4.4.0 no longer has a
dist/instance.js
file instead there aredist/esm/instance.js
anddist/cjs/instance.js
files. they also now just export a singleton on the default. Changing the above lines to the following fixed things for us locally