Update go-chi/jwtauth to v3.3 and remove dgrijalva from direct dependencies
This commit is contained in:
parent
83b738e298
commit
a2d51bbfd8
7 changed files with 27 additions and 28 deletions
|
|
@ -3,7 +3,7 @@ package jwt
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/go-chi/jwtauth"
|
||||
"github.com/go-pg/pg/orm"
|
||||
)
|
||||
|
||||
|
|
@ -37,8 +37,8 @@ func (t *Token) BeforeUpdate(db orm.DB) error {
|
|||
}
|
||||
|
||||
// Claims returns the token claims to be signed
|
||||
func (t *Token) Claims() jwt.MapClaims {
|
||||
return jwt.MapClaims{
|
||||
func (t *Token) Claims() jwtauth.Claims {
|
||||
return jwtauth.Claims{
|
||||
"id": t.ID,
|
||||
"token": t.Token,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue