Skip to content

Conversation

@brkalow
Copy link
Member

@brkalow brkalow commented Jan 22, 2025

Description

Ensure createFapiClient() always receives a domain so we can decide if we should be using it or not.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@brkalow brkalow requested a review from a team January 22, 2025 17:39
@changeset-bot
Copy link

changeset-bot bot commented Jan 22, 2025

🦋 Changeset detected

Latest commit: 8af2542

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

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

@vercel
Copy link

vercel bot commented Jan 22, 2025

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

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 5:39pm

frontendApi: this.frontendApi,
// this.instanceType is assigned above
instanceType: this.instanceType as InstanceType,
isSatellite: this.isSatellite,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this missing and that's why we had issues, or also domain being undefined was part of the reason ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

domain being passed as undefined was the main reason. I missed that it was used unconditionally when initializing the client.

@brkalow brkalow merged commit 442d23a into main Jan 22, 2025
30 checks passed
@brkalow brkalow deleted the brk.fix/fapi-client-prod-domain branch January 22, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants