generated from VLADIMIR/template
update claims
This commit is contained in:
@@ -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, "необходима авторизация")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user