mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
Update vendor directory
This commit is contained in:
4
vendor/golang.org/x/oauth2/jwt/jwt.go
generated
vendored
4
vendor/golang.org/x/oauth2/jwt/jwt.go
generated
vendored
@ -105,7 +105,9 @@ func (js jwtSource) Token() (*oauth2.Token, error) {
|
||||
if t := js.conf.Expires; t > 0 {
|
||||
claimSet.Exp = time.Now().Add(t).Unix()
|
||||
}
|
||||
payload, err := jws.Encode(defaultHeader, claimSet, pk)
|
||||
h := *defaultHeader
|
||||
h.KeyID = js.conf.PrivateKeyID
|
||||
payload, err := jws.Encode(&h, claimSet, pk)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user