File tree Expand file tree Collapse file tree
packages/shared/src/components/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -597,15 +597,18 @@ function AuthOptionsInner({
597597 clearPopupCheck ( ) ;
598598 const popup = windowPopup . current ;
599599 popupCheckIntervalRef . current = setInterval ( ( ) => {
600- if ( ! popup || popup . closed ) {
601- clearPopupCheck ( ) ;
602- if ( ! authFlowCompletedRef . current ) {
603- setIsSocialAuthLoading ( false ) ;
604- onAuthStateUpdate ?.( { isLoading : false } ) ;
605- displayToast ( SOCIAL_AUTH_RETRY_MESSAGE ) ;
606- }
607- windowPopup . current = null ;
600+ if ( popup && ! popup . closed ) {
601+ return ;
602+ }
603+ clearPopupCheck ( ) ;
604+ windowPopup . current = null ;
605+ if ( authFlowCompletedRef . current ) {
606+ return ;
608607 }
608+ // Popup closed without delivering a completion message. The user may
609+ // still be authenticated (session cookies set even when postMessage is
610+ // missed/dropped); verify via boot before surfacing an error toast.
611+ handleLoginMessage ( ) ;
609612 } , 500 ) ;
610613 } ;
611614
You can’t perform that action at this time.
0 commit comments