@obelisk/auth
Advanced tools
Comparing version 1.4.0 to 1.5.2
@@ -266,3 +266,2 @@ var AuthEventType; | ||
var BASE_PATH = '/auth'; | ||
var KEY_ID_TOK = 'obelisk:idTok'; | ||
@@ -296,3 +295,3 @@ var ObeliskAuthClient = /** @class */ (function () { | ||
ObeliskAuthClient.prototype.getAuthPath = function () { | ||
return BASE_PATH; | ||
return this.config.httpBasePath; | ||
}; | ||
@@ -358,3 +357,3 @@ /** | ||
.join('&'); | ||
return [2 /*return*/, Promise.resolve(this.config.host + BASE_PATH + '/auth?' + query)]; | ||
return [2 /*return*/, Promise.resolve(this.getHostUrl() + this.getAuthPath() + '/auth?' + query)]; | ||
} | ||
@@ -410,3 +409,3 @@ }); | ||
query_1.code_verifier = this.loadCodeVerifier(); | ||
return fetch("" + this.config.host + BASE_PATH + "/token", { | ||
return fetch(this.getHostUrl() + this.getAuthPath() + '/token', { | ||
body: JSON.stringify(query_1), | ||
@@ -413,0 +412,0 @@ mode: 'cors', |
@@ -269,3 +269,2 @@ 'use strict'; | ||
var BASE_PATH = '/auth'; | ||
var KEY_ID_TOK = 'obelisk:idTok'; | ||
@@ -299,3 +298,3 @@ var ObeliskAuthClient = /** @class */ (function () { | ||
ObeliskAuthClient.prototype.getAuthPath = function () { | ||
return BASE_PATH; | ||
return this.config.httpBasePath; | ||
}; | ||
@@ -361,3 +360,3 @@ /** | ||
.join('&'); | ||
return [2 /*return*/, Promise.resolve(this.config.host + BASE_PATH + '/auth?' + query)]; | ||
return [2 /*return*/, Promise.resolve(this.getHostUrl() + this.getAuthPath() + '/auth?' + query)]; | ||
} | ||
@@ -413,3 +412,3 @@ }); | ||
query_1.code_verifier = this.loadCodeVerifier(); | ||
return fetch("" + this.config.host + BASE_PATH + "/token", { | ||
return fetch(this.getHostUrl() + this.getAuthPath() + '/token', { | ||
body: JSON.stringify(query_1), | ||
@@ -416,0 +415,0 @@ mode: 'cors', |
export interface ObeliskConfig { | ||
host: string; | ||
httpBasePath: string; | ||
clientId: string; | ||
@@ -4,0 +5,0 @@ redirectUri?: string; |
{ | ||
"name": "@obelisk/auth", | ||
"version": "1.4.0", | ||
"version": "1.5.2", | ||
"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
142341
1082