mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
chore(auth): add more informative logs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user