Update get User & Refresh Token

This commit is contained in:
2025-06-27 21:58:51 +07:00
parent 8873095102
commit 64b1771e2f
7 changed files with 127 additions and 10 deletions
+2 -1
View File
@@ -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()
}
}