We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e85e03 commit b45afe9Copy full SHA for b45afe9
server/middleware/jwt.go
@@ -42,6 +42,7 @@ func JWTAuth() gin.HandlerFunc {
42
return
43
}
44
if err, _ = service.FindUserByUuid(claims.UUID.String()); err != nil {
45
+ _ = service.JsonInBlacklist(model.JwtBlacklist{Jwt: token})
46
response.FailWithDetailed(gin.H{"reload": true}, err.Error(), c)
47
c.Abort()
48
0 commit comments