Skip to content

Commit 986406a

Browse files
author
奇淼(piexlmax
authored
Merge pull request #261 from Enginebeck/develop
jwt.go: fix localStorage spell error
2 parents 2946c8c + 6f589d7 commit 986406a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/middleware/jwt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

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

0 commit comments

Comments
 (0)