Skip to content

Commit

Permalink
Fix a breakage change in the jwt v4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaibmujahid authored and wlynch committed Mar 8, 2021
1 parent d24f14f commit 47f828e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appsTransport.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func NewAppsTransportFromPrivateKey(tr http.RoundTripper, appID int64, key *rsa.
// RoundTrip implements http.RoundTripper interface.
func (t *AppsTransport) RoundTrip(req *http.Request) (*http.Response, error) {
claims := &jwt.StandardClaims{
IssuedAt: time.Now().Unix(),
ExpiresAt: time.Now().Add(time.Minute).Unix(),
IssuedAt: jwt.Now(),
ExpiresAt: jwt.At(time.Now().Add(time.Minute)),
Issuer: strconv.FormatInt(t.appID, 10),
}
bearer := jwt.NewWithClaims(jwt.SigningMethodRS256, claims)
Expand Down

0 comments on commit 47f828e

Please sign in to comment.