response-standardizer 1.3.7 → 1.3.8
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/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const initKeycloak = async (config) => {
|
|
|
15
15
|
(0, exports.info)(`Keycloak PublicKey Url: ${realmUrl}`);
|
|
16
16
|
const resp = await axios_1.default.get(realmUrl);
|
|
17
17
|
if (resp.status === 200) {
|
|
18
|
-
(0, exports.info)(`Keycloak: ${resp.data}`);
|
|
18
|
+
(0, exports.info)(`Keycloak Public Key: ${resp.data.public_key}`);
|
|
19
19
|
const key = resp.data.public_key;
|
|
20
20
|
KEYCLOAK_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----\n${key.match(/.{1,64}/g)?.join("\n")}\n-----END PUBLIC KEY-----`;
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -25,7 +25,7 @@ export const initKeycloak = async (config: { service?: string; realm?: string })
|
|
|
25
25
|
info(`Keycloak PublicKey Url: ${realmUrl}`);
|
|
26
26
|
const resp = await axios.get(realmUrl);
|
|
27
27
|
if(resp.status === 200){
|
|
28
|
-
info(`Keycloak: ${resp.data}`);
|
|
28
|
+
info(`Keycloak Public Key: ${resp.data.public_key}`);
|
|
29
29
|
const key = resp.data.public_key;
|
|
30
30
|
KEYCLOAK_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----\n${key.match(/.{1,64}/g)?.join("\n")}\n-----END PUBLIC KEY-----`;
|
|
31
31
|
}else{
|