File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,19 +139,18 @@ export class BrowserInitService extends InitService {
139139 }
140140
141141 /**
142- * When authenticated during the external authentication flow invalidate
143- * the cache so the app is rehydrated with fresh data .
142+ * During the external authentication flow invalidates the SSR transferState
143+ * data in the cache. This allows the app to fetch fresh content .
144144 * @private
145145 */
146146 private externalAuthCheck ( ) {
147147
148- this . authenticationReady$ ( ) . pipe (
149- switchMap ( ( ) => this . authService . isExternalAuthentication ( ) . pipe (
150- filter ( ( externalAuth : boolean ) => externalAuth )
151- ) )
148+ this . authService . isExternalAuthentication ( ) . pipe (
149+ filter ( ( externalAuth : boolean ) => externalAuth )
152150 ) . subscribe ( ( ) => {
153- this . authService . setExternalAuthStatus ( false ) ;
151+ // Clear the transferState data.
154152 this . rootDatatService . invalidateRootCache ( ) ;
153+ this . authService . setExternalAuthStatus ( false ) ;
155154 }
156155 ) ;
157156
You can’t perform that action at this time.
0 commit comments