Skip to content

Commit fa96943

Browse files
chore(clerk-js): Prefer popup for v0.dev domain (#6118)
Co-authored-by: panteliselef <[email protected]>
1 parent 2c6f805 commit fa96943

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changeset/evil-jobs-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Add `.v0.dev` as prefered origin for oauth flows with popup.

packages/clerk-js/src/ui/utils/originPrefersPopup.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
const POPUP_PREFERRED_ORIGINS = ['.lovable.app', '.lovableproject.com', '.webcontainer-api.io', '.vusercontent.net'];
1+
const POPUP_PREFERRED_ORIGINS = [
2+
'.lovable.app',
3+
'.lovableproject.com',
4+
'.webcontainer-api.io',
5+
'.vusercontent.net',
6+
'.v0.dev',
7+
];
28

39
/**
410
* Returns `true` if the current origin is one that is typically embedded via an iframe, which would benefit from the

0 commit comments

Comments
 (0)