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

Commit 22f180c

Browse files
committed
Mask refresh_token as well
Signed-off-by: Andy Lo-A-Foe <andy.loafoe@gmail.com>
1 parent 392dae7 commit 22f180c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/round_trippers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +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]"`},
2526
}
2627

2728
type HeaderRoundTripper struct {

0 commit comments

Comments
 (0)