chore(auth): add more informative logs

This commit is contained in:
Aarnav Tale
2026-06-22 15:59:00 -04:00
parent 10055541cc
commit a3cd8444a3
4 changed files with 35 additions and 10 deletions
+7
View File
@@ -75,6 +75,13 @@ export interface OidcError {
hint?: string;
}
export function logOidcError(context: string, error: OidcError): void {
log.error("auth", "%s [%s]: %s", context, error.code, error.message);
if (error.hint) {
log.error("auth", "Hint: %s", error.hint);
}
}
type JwksResolver = (
protectedHeader?: JWSHeaderParameters,
token?: FlattenedJWSInput,