From b3296c45ad092e69f5bd9e213a4629da08b8a372 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Wed, 11 Jun 2025 20:52:22 +0200 Subject: [PATCH] feat: get request JTI helper --- internal/util/request.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/util/request.go b/internal/util/request.go index 04d582e..0da7d6b 100644 --- a/internal/util/request.go +++ b/internal/util/request.go @@ -11,3 +11,7 @@ func GetRequestUserId(ctx context.Context) (string, bool) { return userId, ok } +func GetRequestJTI(ctx context.Context) (string, bool) { + jti, ok := ctx.Value(types.JTIKey).(string) + return jti, ok +}