Update get User & Refresh Token
This commit is contained in:
+2
-1
@@ -35,7 +35,8 @@ func JWTProtected() fiber.Handler {
|
||||
})
|
||||
}
|
||||
|
||||
c.Locals("user", claims)
|
||||
c.Locals("user_id", uint(claims["user_id"].(float64)))
|
||||
c.Locals("role", claims["role"].(string))
|
||||
return c.Next()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user