@@ -101,7 +101,6 @@ import type {
101101 Resources ,
102102 SDKMetadata ,
103103 SessionResource ,
104- SessionTouchParams ,
105104 SetActiveParams ,
106105 SignedInSessionResource ,
107106 SignInProps ,
@@ -1580,7 +1579,6 @@ export class Clerk implements ClerkInterface {
15801579 newSession ?. currentTask &&
15811580 this . #options. taskUrls ?. [ newSession ?. currentTask . key ] ;
15821581 const shouldNavigate = ! ! ( redirectUrl || taskUrl || setActiveNavigate ) ;
1583- const touchIntent : SessionTouchParams [ 'intent' ] = shouldSwitchOrganization ? 'select_org' : 'select_session' ;
15841582
15851583 //1. setLastActiveSession to passed user session (add a param).
15861584 // Note that this will also update the session's active organization
@@ -1601,7 +1599,7 @@ export class Clerk implements ClerkInterface {
16011599 if ( shouldNavigate && newSession ) {
16021600 try {
16031601 // __internal_touch does not call updateClient automatically
1604- updatedClient = await newSession . __internal_touch ( { intent : touchIntent } ) ;
1602+ updatedClient = await newSession . __internal_touch ( ) ;
16051603 if ( updatedClient ) {
16061604 // We call updateClient manually, but without letting it emit
16071605 // It's important that the setTransitiveState call happens somewhat
@@ -1617,7 +1615,7 @@ export class Clerk implements ClerkInterface {
16171615 }
16181616 }
16191617 } else {
1620- await this . #touchCurrentSession( newSession , touchIntent ) ;
1618+ await this . #touchCurrentSession( newSession ) ;
16211619 }
16221620 // If we do have the updatedClient, read from that, otherwise getSessionFromClient
16231621 // will fallback to this.client. This makes no difference now, but will if we
@@ -3152,7 +3150,7 @@ export class Clerk implements ClerkInterface {
31523150 this . #touchThrottledUntil = Date . now ( ) + 5_000 ;
31533151
31543152 if ( this . #options. touchSession ) {
3155- void this . #touchCurrentSession( this . session , 'focus' ) ;
3153+ void this . #touchCurrentSession( this . session ) ;
31563154 }
31573155 } ) ;
31583156
@@ -3183,15 +3181,12 @@ export class Clerk implements ClerkInterface {
31833181 } ;
31843182
31853183 // TODO: Be more conservative about touches. Throttle, don't touch when only one user, etc
3186- #touchCurrentSession = async (
3187- session ?: SignedInSessionResource | null ,
3188- intent : SessionTouchParams [ 'intent' ] = 'focus' ,
3189- ) : Promise < void > => {
3184+ #touchCurrentSession = async ( session ?: SignedInSessionResource | null ) : Promise < void > => {
31903185 if ( ! session ) {
31913186 return Promise . resolve ( ) ;
31923187 }
31933188
3194- await session . touch ( { intent } ) . catch ( e => {
3189+ await session . touch ( ) . catch ( e => {
31953190 if ( isUnauthenticatedError ( e ) ) {
31963191 void this . handleUnauthenticated ( ) ;
31973192 } else {
0 commit comments