Skip to content

Commit

Permalink
fix: hide sensitive values from being logged
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Apr 2, 2019
1 parent 183c521 commit 8505f04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ type FilteredKey = string | { name: string; regex: string };
// Ok to log clientid
const FILTERED_KEYS: FilteredKey[] = [
'sid',
'Authorization',
// Any json attribute that contains the words "access" and "token" will have the attribute/value hidden
{ name: 'access_token', regex: 'access[^\'"]*token' },
// Any json attribute that contains the words "refresh" and "token" will have the attribute/value hidden
Expand Down

0 comments on commit 8505f04

Please sign in to comment.