Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump JWT dependency to github.com/golang-jwt/jwt/v4 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"regexp"

env "github.com/dangersalad/go-environment"
"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v4"
"golang.org/x/crypto/bcrypt"
)

Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/dangersalad/go-commonerror"
"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v4"
)

var defaultCookieName = "auth-jwt"
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package user

import (
"context"
"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v4"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/dangersalad/go-user
require (
github.com/dangersalad/go-commonerror v0.1.2
github.com/dangersalad/go-environment v0.2.2
github.com/dgrijalva/jwt-go v0.0.0-20180308231308-06ea1031745c
github.com/golang-jwt/jwt/v4 v4.4.3
golang.org/x/crypto v0.0.0-20180509205747-2d027ae1dddd
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ github.com/dangersalad/go-commonerror v0.1.2 h1:Pw8lXf6nN0YP7N5i4GqELWQtZxbcKoRO
github.com/dangersalad/go-commonerror v0.1.2/go.mod h1:vTQLRbjbjDM1bzLHt9vDGgHjfGbK12h+KKI5D+5655M=
github.com/dangersalad/go-environment v0.2.2 h1:23nH+FkhfEnQjU5b/WweWHjJgs24dsLRkqElxHi9Lnk=
github.com/dangersalad/go-environment v0.2.2/go.mod h1:tq28E5WUhlOKAY5d2nbTFk0i0E6MnGjzLLNCR0Lo4dE=
github.com/dgrijalva/jwt-go v0.0.0-20180308231308-06ea1031745c h1:uwivskbBuX2rEOnl6mwlyJ4oql65nBku08q0NfLAryM=
github.com/dgrijalva/jwt-go v0.0.0-20180308231308-06ea1031745c/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/golang-jwt/jwt/v4 v4.4.3 h1:Hxl6lhQFj4AnOX6MLrsCb/+7tCj7DxP7VA+2rDIq5AU=
github.com/golang-jwt/jwt/v4 v4.4.3/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
golang.org/x/crypto v0.0.0-20180509205747-2d027ae1dddd h1:SuDTjBhSMCPRh1JuhAAzDbwSCwXa8pv17NTDcIvC1AQ=
golang.org/x/crypto v0.0.0-20180509205747-2d027ae1dddd/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
2 changes: 1 addition & 1 deletion login.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package user

import (
"encoding/base64"
"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v4"
"net/http"
"regexp"
"strings"
Expand Down