Skip to content

Commit 43b90d9

Browse files
committed
test logs
1 parent 22e4da0 commit 43b90d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

auth/authutils.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ func ExtractExpiryFromAccessToken(token string) (int, error) {
135135
return expiry, nil
136136
}
137137

138+
func ExtractOIDCDebugValues(token string) (TokenPayload, error) {
139+
tokenPayload, err := extractPayloadFromAccessToken(token)
140+
if err != nil {
141+
return TokenPayload{}, err
142+
}
143+
return tokenPayload, nil
144+
}
145+
138146
// Returns 0 if expired
139147
func GetTokenMinutesLeft(token string) (int64, error) {
140148
payload, err := extractPayloadFromAccessToken(token)

0 commit comments

Comments
 (0)