@wix/astro 0.3.2 → 0.3.3

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.
@@ -283,6 +283,8 @@
283
283
  import { authentication, verification, recovery } from '@wix/identity';
284
284
  import { getMemberTokensForDirectLogin } from './login-helpers/login-helpers.js';
285
285
  import { wixContext } from '@wix/sdk-context';
286
+ import { getAuth } from '@wix/astro/runtime/client';
287
+
286
288
  import type { WixClient } from '@wix/sdk';
287
289
  import type { SiteSessionAuth } from "@wix/sdk/auth/site-session";
288
290
 
@@ -483,12 +485,15 @@
483
485
  // Update context
484
486
  (wixContext['client'] as WixClient<undefined, ReturnType<typeof SiteSessionAuth>>).auth.setTokens(tokens.tokens);
485
487
 
488
+ localStorage.removeItem('wixRedirectSessionLastPreWarm');
489
+ await getAuth().syncToWixPages();
490
+
486
491
  // Set cookie
487
492
  this.setCookie('wixSession', JSON.stringify(tokens), 2);
488
493
 
489
494
  // Reset loading state before exiting
490
495
  this.loading = false;
491
-
496
+
492
497
  // Show success animation
493
498
  this.showSuccessMessage();
494
499
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wix/astro",
3
3
  "description": "Develop your Astro site on the Wix Platform",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "keywords": [