@wix/astro 0.3.2 → 0.3.4

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,14 @@
483
485
  // Update context
484
486
  (wixContext['client'] as WixClient<undefined, ReturnType<typeof SiteSessionAuth>>).auth.setTokens(tokens.tokens);
485
487
 
488
+ await getAuth().syncToWixPages({ force: true });
489
+
486
490
  // Set cookie
487
491
  this.setCookie('wixSession', JSON.stringify(tokens), 2);
488
492
 
489
493
  // Reset loading state before exiting
490
494
  this.loading = false;
491
-
495
+
492
496
  // Show success animation
493
497
  this.showSuccessMessage();
494
498
 
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.4",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -33,7 +33,7 @@
33
33
  "@wix/blog": "^1.0.345",
34
34
  "@wix/data": "^1.0.194",
35
35
  "@wix/identity": "^1.0.125",
36
- "@wix/sdk": "^1.15.18",
36
+ "@wix/sdk": "^1.15.20",
37
37
  "chalk": "^5.4.1",
38
38
  "esm-resolve": "^1.0.11",
39
39
  "globby": "^14.0.2",