@veridex/sdk 1.0.1 → 1.1.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.
package/dist/index.mjs CHANGED
@@ -25,10 +25,10 @@ import {
25
25
  } from "./chunk-QT4ZZ4GM.mjs";
26
26
  import {
27
27
  SuiClient
28
- } from "./chunk-PRHNGA4G.mjs";
28
+ } from "./chunk-SXXGTQIR.mjs";
29
29
  import {
30
30
  StarknetClient
31
- } from "./chunk-EFIURACP.mjs";
31
+ } from "./chunk-MLXQHIH2.mjs";
32
32
  import {
33
33
  STACKS_ACTION_TYPES,
34
34
  StacksClient,
@@ -7061,6 +7061,15 @@ var CrossOriginAuth = class {
7061
7061
  if (options?.sessionChallenge) {
7062
7062
  authUrl.searchParams.set("challenge", options.sessionChallenge);
7063
7063
  }
7064
+ if (options?.register) {
7065
+ authUrl.searchParams.set("register", "true");
7066
+ }
7067
+ if (options?.username) {
7068
+ authUrl.searchParams.set("username", options.username);
7069
+ }
7070
+ if (options?.displayName) {
7071
+ authUrl.searchParams.set("display_name", options.displayName);
7072
+ }
7064
7073
  const popup = window.open(
7065
7074
  authUrl.toString(),
7066
7075
  "veridex-auth",
@@ -7114,6 +7123,15 @@ var CrossOriginAuth = class {
7114
7123
  if (options?.sessionChallenge) {
7115
7124
  authUrl.searchParams.set("challenge", options.sessionChallenge);
7116
7125
  }
7126
+ if (options?.register) {
7127
+ authUrl.searchParams.set("register", "true");
7128
+ }
7129
+ if (options?.username) {
7130
+ authUrl.searchParams.set("username", options.username);
7131
+ }
7132
+ if (options?.displayName) {
7133
+ authUrl.searchParams.set("display_name", options.displayName);
7134
+ }
7117
7135
  window.location.href = authUrl.toString();
7118
7136
  return new Promise(() => {
7119
7137
  });