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 +}