update claims

This commit is contained in:
2026-10-01 13:19:59 +07:00
parent f462bc6a03
commit 1887b5b9a1
16 changed files with 222 additions and 61 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import (
)
func (s *server) DownloadTeamQR(ctx context.Context, req *proto.GetGameReq) (*httpbody.HttpBody, error) {
claims, ok := ctx.Value("claims").(*processor_jwt.JWTClaims)
claims, ok := processor_jwt.ClaimsFromContext(ctx)
if !ok || claims == nil {
return nil, status.Error(codes.Unauthenticated, "необходима авторизация")
}