WIP: Develop #1
@@ -14,9 +14,8 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
signKey *rsa.PrivateKey
|
||||
publicSignKey *rsa.PublicKey
|
||||
signMethod jwt.SigningMethod = jwt.SigningMethodRS256
|
||||
signKey *rsa.PrivateKey
|
||||
signMethod jwt.SigningMethod = jwt.SigningMethodRS256
|
||||
|
||||
AuthMiddleware *ginJwt.GinJWTMiddleware
|
||||
)
|
||||
@@ -49,11 +48,6 @@ func Init() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
publicSignKey, err = jwt.ParseRSAPublicKeyFromPEM(publicFile)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
AuthMiddleware = &ginJwt.GinJWTMiddleware{
|
||||
SigningAlgorithm: signMethod.Alg(),
|
||||
PrivKeyBytes: privateFile,
|
||||
|
||||
Reference in New Issue
Block a user