feat: set token jti in request

This commit is contained in:
2025-06-11 20:39:34 +02:00
parent 68074e02bc
commit 0f0d50a684

View File

@ -46,6 +46,7 @@ func (m *AuthMiddleware) Runner(next http.Handler) http.Handler {
}
ctx := context.WithValue(r.Context(), types.UserIdKey, userClaims.Subject)
ctx = context.WithValue(ctx, types.JTIKey, userClaims.ID)
next.ServeHTTP(w, r.WithContext(ctx))
})
}