@wvdsh/sdk-js 1.3.18 → 1.3.19

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3683,6 +3683,7 @@ var SwMessenger = class {
3683
3683
  import {
3684
3684
  IFRAME_MESSAGE_TYPE as IFRAME_MESSAGE_TYPE7,
3685
3685
  UrlParams,
3686
+ PlayRouteCaller,
3686
3687
  SERVICE_WORKER_MESSAGE_TYPE
3687
3688
  } from "@wvdsh/api";
3688
3689
 
@@ -4961,7 +4962,11 @@ var WavedashSDK = class extends EventTarget {
4961
4962
  await previous.catch(() => {
4962
4963
  });
4963
4964
  }
4964
- const response = await fetch("/auth/refresh", {
4965
+ const refreshQuery = new URLSearchParams({
4966
+ [UrlParams.Caller]: PlayRouteCaller.Wavedash
4967
+ });
4968
+ const refreshPath = `/auth/refresh?${refreshQuery.toString()}`;
4969
+ const response = await fetch(refreshPath, {
4965
4970
  method: "POST",
4966
4971
  credentials: "same-origin"
4967
4972
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/sdk-js",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "type": "module",
5
5
  "description": "Wavedash JavaScript SDK",
6
6
  "main": "./dist/client.js",