Browse Source

Merge pull request #261 from Enginebeck/develop

jwt.go: fix localStorage spell error
奇淼(piexlmax 4 years ago
parent
commit
312930a7cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/middleware/jwt.go

+ 1 - 1
server/middleware/jwt.go

@@ -16,7 +16,7 @@ import (
 
 func JWTAuth() gin.HandlerFunc {
 	return func(c *gin.Context) {
-		// 我们这里jwt鉴权取头部信息 x-token 登录时回返回token信息 这里前端需要把token存储到cookie或者本地localSstorage中 不过需要跟后端协商过期时间 可以约定刷新令牌或者重新登录
+		// 我们这里jwt鉴权取头部信息 x-token 登录时回返回token信息 这里前端需要把token存储到cookie或者本地localStorage中 不过需要跟后端协商过期时间 可以约定刷新令牌或者重新登录
 		token := c.Request.Header.Get("x-token")
 		if token == "" {
 			response.Result(response.ERROR, gin.H{