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 11:13:50 -04:00
committed by GitHub
co-authored by Matti R
parent 0b06b2019f
commit 67942ac1a9
30 changed files with 153 additions and 171 deletions
+2 -1
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.