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

fix: js-sdk was improperly setting isIntialized to true even for situations where the SDK token was invalid #918

Merged
merged 9 commits into from
Aug 14, 2024

Conversation

kaushalkapasi
Copy link
Contributor

@kaushalkapasi kaushalkapasi commented Aug 7, 2024

Reference: #913

  • fix: adds initialization validation to ensure the SDK key provide to the JS SDK starts with dvc_client or client
    • fix: allows server key to be used when initializing the JS Client SDK from the NextJS SDK
  • fix: calls the reject handler for on Initialized if the Client SDK API rejects the SDK token with a 401 - Forbidden error message

Copy link

vercel bot commented Aug 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
js-sdks-web-elements ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2024 7:45pm
js-sdks-with-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2024 7:45pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
js-sdks-next-js-page-router ⬜️ Ignored (Inspect) Aug 14, 2024 7:45pm

@kaushalkapasi kaushalkapasi requested a review from jsalaber August 7, 2024 18:26
@kaushalkapasi kaushalkapasi force-pushed the fix-js-sdk-improperly-settings-intialized branch from 4014622 to 55f1355 Compare August 7, 2024 19:56
sdk/js/__tests__/Client.spec.js Dismissed Show dismissed Hide dismissed
sdk/js/__tests__/index.spec.js Fixed Show fixed Hide fixed
sdk/js/src/index.ts Outdated Show resolved Hide resolved
sdk/js/__tests__/index.spec.js Dismissed Show dismissed Hide dismissed
sdk/js/src/Request.ts Outdated Show resolved Hide resolved
@kaushalkapasi kaushalkapasi force-pushed the fix-js-sdk-improperly-settings-intialized branch from 0d726f4 to c952b5c Compare August 14, 2024 19:27
@kaushalkapasi kaushalkapasi requested a review from ajwootto August 14, 2024 19:27
@kaushalkapasi kaushalkapasi enabled auto-merge (squash) August 14, 2024 19:28
@kaushalkapasi kaushalkapasi merged commit 4462e6d into main Aug 14, 2024
12 checks passed
@kaushalkapasi kaushalkapasi deleted the fix-js-sdk-improperly-settings-intialized branch August 14, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants