@obelisk/auth
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -266,2 +266,3 @@ var AuthEventType; | ||
var BASE_PATH = 'x'; | ||
var ObeliskAuthClient = /** @class */ (function () { | ||
@@ -325,3 +326,3 @@ function ObeliskAuthClient(config, eventHandler) { | ||
.join('&'); | ||
return [2 /*return*/, Promise.resolve(this.config.host + '/auth?' + query)]; | ||
return [2 /*return*/, Promise.resolve(this.config.host + BASE_PATH + '/auth?' + query)]; | ||
} | ||
@@ -336,2 +337,5 @@ }); | ||
var _this = this; | ||
if (!event) { | ||
return; | ||
} | ||
var url = event.url; | ||
@@ -351,3 +355,3 @@ if (url && url.indexOf('#') !== -1) { | ||
query_1.code_verifier = this.loadCodeVerifier(); | ||
fetch(this.config.host + "/token", { | ||
fetch("" + this.config.host + BASE_PATH + "/token", { | ||
body: JSON.stringify(query_1), | ||
@@ -354,0 +358,0 @@ mode: 'cors', |
@@ -269,2 +269,3 @@ 'use strict'; | ||
var BASE_PATH = 'x'; | ||
var ObeliskAuthClient = /** @class */ (function () { | ||
@@ -328,3 +329,3 @@ function ObeliskAuthClient(config, eventHandler) { | ||
.join('&'); | ||
return [2 /*return*/, Promise.resolve(this.config.host + '/auth?' + query)]; | ||
return [2 /*return*/, Promise.resolve(this.config.host + BASE_PATH + '/auth?' + query)]; | ||
} | ||
@@ -339,2 +340,5 @@ }); | ||
var _this = this; | ||
if (!event) { | ||
return; | ||
} | ||
var url = event.url; | ||
@@ -354,3 +358,3 @@ if (url && url.indexOf('#') !== -1) { | ||
query_1.code_verifier = this.loadCodeVerifier(); | ||
fetch(this.config.host + "/token", { | ||
fetch("" + this.config.host + BASE_PATH + "/token", { | ||
body: JSON.stringify(query_1), | ||
@@ -357,0 +361,0 @@ mode: 'cors', |
{ | ||
"name": "@obelisk/auth", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127327
917