aboutsummaryrefslogtreecommitdiff
path: root/api/auth_jwt.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/auth_jwt.go')
-rw-r--r--api/auth_jwt.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/api/auth_jwt.go b/api/auth_jwt.go
index 5ce1593..db7e3f4 100644
--- a/api/auth_jwt.go
+++ b/api/auth_jwt.go
@@ -20,10 +20,6 @@ type JwtClaims struct {
20 jwt.StandardClaims 20 jwt.StandardClaims
21} 21}
22 22
23func SetJwtSecretKey(secret string) {
24 JWT_SECRET = []byte(secret)
25}
26
27func VerifyJwtToken(token string) (JwtClaims, error) { 23func VerifyJwtToken(token string) (JwtClaims, error) {
28 if len(JWT_SECRET) == 0 { 24 if len(JWT_SECRET) == 0 {
29 return JwtClaims{}, fmt.Errorf("not initialized jwt secret") 25 return JwtClaims{}, fmt.Errorf("not initialized jwt secret")