Switch to maintained jwt lib (#16532) (#16533)

Backport #16532

Co-authored-by: Matti R <matti@mdranta.net>
This commit is contained in:
zeripath 2021-07-24 16:13:50 +01:00 committed by GitHub
parent 0b06b2019f
commit 67942ac1a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 153 additions and 171 deletions

View file

@ -12,7 +12,8 @@ import (
"time"
"code.gitea.io/gitea/modules/util"
"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt"
)
// NewInternalToken generate a new value intended to be used by INTERNAL_TOKEN.