Skip to content

Commit 242a01d

Browse files
Add changeset
1 parent 29333cd commit 242a01d

4 files changed

Lines changed: 46 additions & 56 deletions

File tree

.changeset/rich-goats-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@asgardeo/javascript': patch
3+
---
4+
5+
Fix CI issues in javascript package

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"tar": "7.5.7",
6060
"seroval": "1.4.1",
6161
"qs": "6.14.1",
62-
"@vitejs/plugin-vue>vite": "7.1.12"
62+
"@vitejs/plugin-vue>vite": "7.1.12",
63+
"prettier": "2.6.2"
6364
}
6465
},
6566
"publishConfig": {

packages/javascript/src/__legacy__/helpers/authentication-helper.ts

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,22 +136,19 @@ export class AuthenticationHelper<T> {
136136
});
137137
}
138138

139+
const endpointKeys: typeof OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints =
140+
OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints;
141+
const endpointPaths: typeof OIDCDiscoveryConstants.Endpoints = OIDCDiscoveryConstants.Endpoints;
142+
139143
const defaultEndpoints: OIDCDiscoveryApiResponse = {
140-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints
141-
.AUTHORIZATION]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.AUTHORIZATION}`,
142-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints
143-
.END_SESSION]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.END_SESSION}`,
144-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints
145-
.ISSUER]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.ISSUER}`,
146-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints.JWKS]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.JWKS}`,
147-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints
148-
.SESSION_IFRAME]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.SESSION_IFRAME}`,
149-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints
150-
.REVOCATION]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.REVOCATION}`,
151-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints
152-
.TOKEN]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.TOKEN}`,
153-
[OIDCDiscoveryConstants.Storage.StorageKeys.Endpoints
154-
.USERINFO]: `${baseUrl}${OIDCDiscoveryConstants.Endpoints.USERINFO}`,
144+
[endpointKeys.AUTHORIZATION]: `${baseUrl}${endpointPaths.AUTHORIZATION}`,
145+
[endpointKeys.END_SESSION]: `${baseUrl}${endpointPaths.END_SESSION}`,
146+
[endpointKeys.ISSUER]: `${baseUrl}${endpointPaths.ISSUER}`,
147+
[endpointKeys.JWKS]: `${baseUrl}${endpointPaths.JWKS}`,
148+
[endpointKeys.SESSION_IFRAME]: `${baseUrl}${endpointPaths.SESSION_IFRAME}`,
149+
[endpointKeys.REVOCATION]: `${baseUrl}${endpointPaths.REVOCATION}`,
150+
[endpointKeys.TOKEN]: `${baseUrl}${endpointPaths.TOKEN}`,
151+
[endpointKeys.USERINFO]: `${baseUrl}${endpointPaths.USERINFO}`,
155152
};
156153

157154
// For AsgardeoV2 (Thunder), the issuer must be the base URL (e.g., https://localhost:8090)

pnpm-lock.yaml

Lines changed: 27 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)