diff --git a/CHANGELOG.md b/CHANGELOG.md index cc0862dc3..d050e5b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [16.7.3] - 2024-02-26 + +- Fixes dashboard URI path. Now it returns the complete user given path instead of just the normalized connectionURI domain. + ## [16.7.2] - 2024-02-19 - `createNewSession` now defaults to the value of the `st-auth-mode` header (if available) if the configured `getTokenTransferMethod` returns `any`. diff --git a/lib/build/recipe/dashboard/api/implementation.js b/lib/build/recipe/dashboard/api/implementation.js index 5146e3d76..ce58f2978 100644 --- a/lib/build/recipe/dashboard/api/implementation.js +++ b/lib/build/recipe/dashboard/api/implementation.js @@ -38,9 +38,13 @@ function getAPIImplementation() { const superTokensInstance = supertokens_1.default.getInstanceOrThrowError(); const authMode = input.options.config.authMode; if (superTokensInstance.supertokens !== undefined) { - connectionURI = new normalisedURLDomain_1.default( - superTokensInstance.supertokens.connectionURI.split(";")[0] - ).getAsStringDangerous(); + connectionURI = + new normalisedURLDomain_1.default( + superTokensInstance.supertokens.connectionURI.split(";")[0] + ).getAsStringDangerous() + + new normalisedURLPath_1.default( + superTokensInstance.supertokens.connectionURI.split(";")[0] + ).getAsStringDangerous(); } let isSearchEnabled = false; const cdiVersion = await querier_1.Querier.getNewInstanceOrThrowError( diff --git a/lib/build/version.d.ts b/lib/build/version.d.ts index 4fa5b84c1..d9c1670d5 100644 --- a/lib/build/version.d.ts +++ b/lib/build/version.d.ts @@ -1,4 +1,4 @@ // @ts-nocheck -export declare const version = "16.7.2"; +export declare const version = "16.7.3"; export declare const cdiSupported: string[]; export declare const dashboardVersion = "0.10"; diff --git a/lib/build/version.js b/lib/build/version.js index 88a1d3e27..ff61bb32e 100644 --- a/lib/build/version.js +++ b/lib/build/version.js @@ -15,7 +15,7 @@ exports.dashboardVersion = exports.cdiSupported = exports.version = void 0; * License for the specific language governing permissions and limitations * under the License. */ -exports.version = "16.7.2"; +exports.version = "16.7.3"; exports.cdiSupported = ["4.0"]; // Note: The actual script import for dashboard uses v{DASHBOARD_VERSION} exports.dashboardVersion = "0.10"; diff --git a/lib/ts/recipe/dashboard/api/implementation.ts b/lib/ts/recipe/dashboard/api/implementation.ts index 3f616400a..b5426db75 100644 --- a/lib/ts/recipe/dashboard/api/implementation.ts +++ b/lib/ts/recipe/dashboard/api/implementation.ts @@ -38,9 +38,13 @@ export default function getAPIImplementation(): APIInterface { const authMode: AuthMode = input.options.config.authMode; if (superTokensInstance.supertokens !== undefined) { - connectionURI = new NormalisedURLDomain( - superTokensInstance.supertokens.connectionURI.split(";")[0] - ).getAsStringDangerous(); + connectionURI = + new NormalisedURLDomain( + superTokensInstance.supertokens.connectionURI.split(";")[0] + ).getAsStringDangerous() + + new NormalisedURLPath( + superTokensInstance.supertokens.connectionURI.split(";")[0] + ).getAsStringDangerous(); } let isSearchEnabled = false; diff --git a/lib/ts/version.ts b/lib/ts/version.ts index c03d78eea..d169ab684 100644 --- a/lib/ts/version.ts +++ b/lib/ts/version.ts @@ -12,7 +12,7 @@ * License for the specific language governing permissions and limitations * under the License. */ -export const version = "16.7.2"; +export const version = "16.7.3"; export const cdiSupported = ["4.0"]; diff --git a/package-lock.json b/package-lock.json index 4648d7b58..f424b0e43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "supertokens-node", - "version": "16.7.2", + "version": "16.7.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "supertokens-node", - "version": "16.7.2", + "version": "16.7.3", "license": "Apache-2.0", "dependencies": { "content-type": "^1.0.5", diff --git a/package.json b/package.json index ddce7368c..9462820b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "supertokens-node", - "version": "16.7.2", + "version": "16.7.3", "description": "NodeJS driver for SuperTokens core", "main": "index.js", "scripts": { diff --git a/test/dashboard/dashboardGet.test.js b/test/dashboard/dashboardGet.test.js index 3976e7ad1..0a552fbe7 100644 --- a/test/dashboard/dashboardGet.test.js +++ b/test/dashboard/dashboardGet.test.js @@ -69,7 +69,7 @@ describe(`User Dashboard get: ${printPath("[test/dashboard/dashboardGet.test.js] }); it("Test connectionURI contains https protocol", async () => { - const connectionURI = "https://try.supertokens.com"; + const connectionURI = "https://try.supertokens.com/appid-public"; // removing protocol from the original connectionURI. const connectionURIWithoutProtocol = connectionURI.replace("https://", ""); @@ -113,8 +113,8 @@ describe(`User Dashboard get: ${printPath("[test/dashboard/dashboardGet.test.js] }); it("Test multiple connection URIs", async () => { - const firstConnectionURI = await startST(); - const secondConnectionURI = "https://try.supertokens.com"; + const firstConnectionURI = "https://try.supertokens.com/appid-public"; + const secondConnectionURI = await startST(); const multipleConnectionURIs = `${firstConnectionURI};${secondConnectionURI}`;