@medialane/sdk 0.123.0 → 0.124.0

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.
@@ -11580,7 +11580,8 @@ function normalizeSiwsSignature(signature) {
11580
11580
  async function requestSiwsToken({
11581
11581
  backendUrl,
11582
11582
  walletAddress,
11583
- signer
11583
+ signer,
11584
+ appSource
11584
11585
  }) {
11585
11586
  const base = backendUrl.replace(/\/$/, "");
11586
11587
  const nonceRes = await fetch(`${base}/v1/auth/siws/nonce`, {
@@ -11596,7 +11597,7 @@ async function requestSiwsToken({
11596
11597
  const verifyRes = await fetch(`${base}/v1/auth/siws/verify`, {
11597
11598
  method: "POST",
11598
11599
  headers: { "Content-Type": "application/json" },
11599
- body: JSON.stringify({ walletAddress, nonce, signature })
11600
+ body: JSON.stringify({ walletAddress, nonce, signature, ...appSource ? { appSource } : {} })
11600
11601
  });
11601
11602
  if (!verifyRes.ok) {
11602
11603
  let backendMessage;