Add context for everything

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-21 16:43:46 +08:00
parent 83df018d34
commit b8f89ab655
27 changed files with 309 additions and 127 deletions

View File

@@ -14,7 +14,7 @@ func JWTAuth() gin.HandlerFunc {
auth := c.GetHeader("Authorization")
authtoken := new(authtoken.Token)
uid, err := authtoken.HeaderVerify(auth)
uid, err := authtoken.HeaderVerify(c, auth)
if err != nil {
errorCode := new(exception.Builder).
SetStatus(exception.StatusUser).