Closed tmilewski closed 3 months ago
Latest commit: 2bdca284ef0f547afc2401e1aba94a33fd984aa1
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
!snapshot
Hey @tmilewski - the snapshot version command generated the following package versions: | Package | Version |
---|---|---|
@clerk/chrome-extension | 1.1.2-snapshot.vd49286e | |
gatsby-plugin-clerk | 5.0.0-beta.45 |
Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/chrome-extension
npm i @clerk/chrome-extension@1.1.2-snapshot.vd49286e --save-exact
gatsby-plugin-clerk
npm i gatsby-plugin-clerk@5.0.0-beta.45 --save-exact
Instead of making this change, why don't we fix the code where it's being called to pass a valid URL with protocol? This issue is caused by incorrectly passing the
clerk.frontendApi
(which is not a full URL) as param in the JWTHandler.ref:
@dimkl Yup, I just prepended it. I'm going to leave the other method as there are other cases where that will be necessary and ultimately extended.
@dimkl Yup, I just prepended it. I'm going to leave the other method as there are other cases where that will be necessary and ultimately extended.
@tmilewski Could you provide example of other cases?
Based on the code, the only case where the url as string is used is for a production instance where we explicitly pass the frontendApiKey (prefixed with https
after this PR). In the case of the development instance, an array of URLs is passed and this code is not executed.
Could we revert the changes in the packages/chrome-extension/src/utils/cookies.ts
as it seems unnecessary?
Description
Ensures that there's a valid URL as some don't resolve with a protocol
Fixes SDK-1867
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change