diff --git a/go.mod b/go.mod index 8533765..affa584 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,8 @@ module github.com/plivo/plivo-go go 1.13 require ( - github.com/davecgh/go-spew v1.1.0 // indirect - github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/golang-jwt/jwt v3.2.1+incompatible github.com/google/go-querystring v1.1.0 - github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/testify v1.7.0 golang.org/x/text v0.3.7 - gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/go.sum b/go.sum index f33eee0..dc326cd 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= +github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= diff --git a/jwt/jwt.go b/jwt/jwt.go index f859923..8ba7fcb 100644 --- a/jwt/jwt.go +++ b/jwt/jwt.go @@ -3,10 +3,9 @@ package jwt import ( "errors" "fmt" + "github.com/golang-jwt/jwt" "os" "time" - - "github.com/dgrijalva/jwt-go" ) type AccessToken struct {