Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/big-sides-go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Fix authentication state resolution when creating checkout instance
2 changes: 1 addition & 1 deletion packages/clerk-js/src/core/modules/checkout/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function createCheckoutInstance(
): __experimental_CheckoutInstance {
const { for: forOrganization, planId, planPeriod } = options;

if (!clerk.user) {
if (!clerk.isSignedIn || !clerk.user) {
throw new Error('Clerk: User is not authenticated');
}

Expand Down
Loading