@@ -2098,6 +2098,7 @@ describe('tokens.authenticateRequest(options)', () => {
20982098 {
20992099 __session : mockJwt ,
21002100 __client_uat : '12345' ,
2101+ __clerk_db_jwt : mockJwt ,
21012102 } ,
21022103 'https://primary.com/dashboard' ,
21032104 ) ;
@@ -2110,7 +2111,11 @@ describe('tokens.authenticateRequest(options)', () => {
21102111 signInUrl : 'https://primary.com/sign-in' ,
21112112 } ) ;
21122113
2113- expect ( requestState . reason ) . not . toBe ( AuthErrorReason . PrimaryDomainCrossOriginSync ) ;
2114+ expect ( requestState ) . toBeSignedIn ( {
2115+ domain : 'primary.com' ,
2116+ isSatellite : false ,
2117+ signInUrl : 'https://primary.com/sign-in' ,
2118+ } ) ;
21142119 } ) ;
21152120
21162121 test ( 'does not trigger cross-origin handshake when referer is from dev accounts portal on a dev instance (legacy format)' , async ( ) => {
@@ -2123,6 +2128,7 @@ describe('tokens.authenticateRequest(options)', () => {
21232128 {
21242129 __session : mockJwt ,
21252130 __client_uat : '12345' ,
2131+ __clerk_db_jwt : mockJwt ,
21262132 } ,
21272133 'https://primary.com/dashboard' ,
21282134 ) ;
@@ -2135,7 +2141,11 @@ describe('tokens.authenticateRequest(options)', () => {
21352141 signInUrl : 'https://primary.com/sign-in' ,
21362142 } ) ;
21372143
2138- expect ( requestState . reason ) . not . toBe ( AuthErrorReason . PrimaryDomainCrossOriginSync ) ;
2144+ expect ( requestState ) . toBeSignedIn ( {
2145+ domain : 'primary.com' ,
2146+ isSatellite : false ,
2147+ signInUrl : 'https://primary.com/sign-in' ,
2148+ } ) ;
21392149 } ) ;
21402150
21412151 // A production instance must not trust dev-portal referrers, which are freely obtainable.
0 commit comments