File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
packages/backend/src/tokens Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -590,13 +590,14 @@ export const authenticateRequest: AuthenticateRequest = (async (
590590 ) ;
591591 }
592592
593- const authObject = signedInRequestState . toAuth ( ) ;
594- // Org sync if necessary
595- if ( authObject . userId ) {
596- const handshakeRequestState = handleMaybeOrganizationSyncHandshake ( authenticateContext , authObject ) ;
597- if ( handshakeRequestState ) {
598- return handshakeRequestState ;
599- }
593+ const authObject = signedInRequestState . toAuth ( {
594+ // The organization sync handshake will handle the pending session case, so we don't need to treat it as signed out here
595+ treatPendingAsSignedOut : false ,
596+ } ) ;
597+
598+ const handshakeRequestState = handleMaybeOrganizationSyncHandshake ( authenticateContext , authObject ) ;
599+ if ( handshakeRequestState ) {
600+ return handshakeRequestState ;
600601 }
601602
602603 return signedInRequestState ;
You can’t perform that action at this time.
0 commit comments