File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,11 @@ export class PublicClientApplication {
102
102
// Initialize default authority instance
103
103
TrustedAuthority . setTrustedAuthoritiesFromConfig ( this . config . auth . knownAuthorities , this . config . auth . cloudDiscoveryMetadata ) ;
104
104
105
- this . defaultAuthorityPromise = AuthorityFactory . createDiscoveredInstance (
106
- this . config . auth . authority ,
107
- this . networkClient
108
- ) ;
105
+ this . defaultAuthorityPromise = AuthorityFactory . createDiscoveredInstance ( this . config . auth . authority , this . networkClient ) ;
109
106
110
107
const { location : { hash } } = window ;
111
- if ( StringUtils . isEmpty ( hash ) ) {
108
+ const cachedHash = this . browserStorage . getItem ( this . browserStorage . generateCacheKey ( TemporaryCacheKeys . URL_HASH ) , CacheSchemaType . TEMPORARY ) as string ;
109
+ if ( StringUtils . isEmpty ( hash ) && StringUtils . isEmpty ( cachedHash ) ) {
112
110
// There is no hash - assume we are in clean state and clear any current request data.
113
111
this . browserStorage . cleanRequest ( ) ;
114
112
}
You can’t perform that action at this time.
0 commit comments