fix(coderd): correct the name of the unmarshall error variable (#20150)

Incorrect error variable is used during reporting of the issue during
unmarshall operations and this makes it hard to understand the
underlying reason for OIDC failure: use `unmarshalError` instead of
`err`.
This commit is contained in:
yyefimov
2025-10-03 12:08:15 +10:00
committed by GitHub
parent ffcb7a1693
commit 039fa89481
+1 -1
View File
@@ -247,7 +247,7 @@ func (src *jwtTokenSource) Token() (*oauth2.Token, error) {
}
if unmarshalError != nil {
return nil, xerrors.Errorf("oauth2: cannot unmarshal token: %w", err)
return nil, xerrors.Errorf("oauth2: cannot unmarshal token: %w", unmarshalError)
}
newToken := &oauth2.Token{