@xh/hoist 72.0.0-SNAPSHOT.1736879763062 → 72.0.0-SNAPSHOT.1736881018782
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -143,7 +143,7 @@ export declare abstract class BaseOAuthClient<C extends BaseOAuthClientConfig<S>
|
|
|
143
143
|
*/
|
|
144
144
|
protected restoreRedirectState(key: string): void;
|
|
145
145
|
/** Call after requesting the provider library redirect the user away for auth. */
|
|
146
|
-
protected
|
|
146
|
+
protected maskAfterRedirectAsync(): Promise<void>;
|
|
147
147
|
protected fetchAllTokensAsync(useCache?: boolean): Promise<TokenMap>;
|
|
148
148
|
protected getLocalStorage(key: string, defaultValue?: any): any;
|
|
149
149
|
protected setLocalStorage(key: string, value: any): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "72.0.0-SNAPSHOT.
|
|
3
|
+
"version": "72.0.0-SNAPSHOT.1736881018782",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
|
@@ -289,7 +289,7 @@ export abstract class BaseOAuthClient<C extends BaseOAuthClientConfig<S>, S> ext
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
/** Call after requesting the provider library redirect the user away for auth. */
|
|
292
|
-
protected async
|
|
292
|
+
protected async maskAfterRedirectAsync() {
|
|
293
293
|
// We expect the tab to unload momentarily and be redirected to the provider's login page.
|
|
294
294
|
// Wait here to ensure we mask the app while the browser processes the redirect...
|
|
295
295
|
await wait(10 * SECONDS);
|
|
@@ -105,7 +105,7 @@ export class AuthZeroClient extends BaseOAuthClient<AuthZeroClientConfig, AuthZe
|
|
|
105
105
|
authorizationParams: {scope: this.loginScope}
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
await this.
|
|
108
|
+
await this.maskAfterRedirectAsync();
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
protected override async doLoginPopupAsync(): Promise<void> {
|
|
@@ -210,7 +210,7 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
|
|
|
210
210
|
redirectUri: this.redirectUrl
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
await this.
|
|
213
|
+
await this.maskAfterRedirectAsync();
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
protected override async fetchIdTokenAsync(useCache: boolean = true): Promise<Token> {
|