File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
packages/clerk-js/src/ui/utils Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/clerk-js ' : patch
3+ ---
4+
5+ Add ` .lp.dev ` to list of origins that prefer the popup SSO flow.
Original file line number Diff line number Diff line change @@ -105,6 +105,14 @@ describe('originPrefersPopup', () => {
105105 expect ( originPrefersPopup ( ) ) . toBe ( true ) ;
106106 } ) ;
107107
108+ it ( 'should return true for .lp.dev domains' , ( ) => {
109+ mockLocationOrigin ( 'https://preview.lp.dev' ) ;
110+ expect ( originPrefersPopup ( ) ) . toBe ( true ) ;
111+
112+ mockLocationOrigin ( 'https://app.lp.dev' ) ;
113+ expect ( originPrefersPopup ( ) ) . toBe ( true ) ;
114+ } ) ;
115+
108116 it ( 'should handle HTTPS and HTTP protocols' , ( ) => {
109117 mockLocationOrigin ( 'http://localhost.lovable.app' ) ;
110118 expect ( originPrefersPopup ( ) ) . toBe ( true ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const POPUP_PREFERRED_ORIGINS = [
77 '.vusercontent.net' ,
88 '.v0.dev' ,
99 '.v0.app' ,
10+ '.lp.dev' ,
1011] ;
1112
1213/**
You can’t perform that action at this time.
0 commit comments