Adjust again for uncertian config

This commit is contained in:
Owen
2025-08-20 17:48:55 -07:00
parent 49f0f6ec7d
commit 77796e8a75
9 changed files with 18 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ export async function validateOidcCallback(
);
}
const key = config.getRawConfig().server.secret;
const key = config.getRawConfig().server.secret!;
const decryptedClientId = decrypt(
existingIdp.idpOidcConfig.clientId,
@@ -116,7 +116,7 @@ export async function validateOidcCallback(
const statePayload = jsonwebtoken.verify(
storedState,
config.getRawConfig().server.secret,
config.getRawConfig().server.secret!,
function (err, decoded) {
if (err) {
logger.error("Error verifying state JWT", { err });