@auditauth/web 0.2.0-beta.4 → 0.2.0-beta.6

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/sdk.cjs CHANGED
@@ -165,7 +165,8 @@ class AuditAuthWeb {
165
165
  async login() {
166
166
  const url = await (0, import_core.buildAuthUrl)({
167
167
  apiKey: this.config.apiKey,
168
- redirectUrl: this.config.redirectUrl
168
+ redirectUrl: this.config.redirectUrl,
169
+ cancelUrl: this.config.baseUrl
169
170
  });
170
171
  window.location.href = url.href;
171
172
  }
package/dist/sdk.js CHANGED
@@ -142,7 +142,8 @@ class AuditAuthWeb {
142
142
  async login() {
143
143
  const url = await buildAuthUrl({
144
144
  apiKey: this.config.apiKey,
145
- redirectUrl: this.config.redirectUrl
145
+ redirectUrl: this.config.redirectUrl,
146
+ cancelUrl: this.config.baseUrl
146
147
  });
147
148
  window.location.href = url.href;
148
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auditauth/web",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.6",
4
4
  "description": "AuditAuth Web SDK (framework-agnostic)",
5
5
  "license": "MIT",
6
6
  "author": "Nimibyte",
@@ -48,7 +48,7 @@
48
48
  "prepack": "npm run build"
49
49
  },
50
50
  "dependencies": {
51
- "@auditauth/core": "^0.2.0-beta.4"
51
+ "@auditauth/core": "^0.2.0-beta.6"
52
52
  },
53
53
  "devDependencies": {
54
54
  "typescript": "^5.3.3"