Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit a7fa64e

Browse files
committed
More generic token detector
Signed-off-by: Andy Lo-A-Foe <andy.loafoe@gmail.com>
1 parent 261f81a commit a7fa64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/round_trippers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var filterList = []filter{
2222
{regexp.MustCompile(`"access_token":"[^"]+"`), `"access_token":"[sensitive]"`},
2323
{regexp.MustCompile(`"id_token":"[^"]+"`), `"id_token":"[sensitive]"`},
2424
{regexp.MustCompile(`"token":"[^"]+"`), `"token":"[sensitive]"`},
25-
{regexp.MustCompile(`refresh_token=\w+`), `refresh_token=sensitive`},
25+
{regexp.MustCompile(`token=\w+`), `token=sensitive`},
2626
}
2727

2828
type HeaderRoundTripper struct {

0 commit comments

Comments
 (0)