🛂(y-provider) verify jwt token instead of the shared api key

The /api/convert route no longer accepts the Y_PROVIDER_API_KEY shared
secret. It now verifies the admin JWT signed by Django against the
JWKS published on its /api/v1.0/jwks endpoint.
This commit is contained in:
Anthony LC
2026-08-13 14:32:06 +02:00
committed by Manuel Raynaud
parent e06bfa9a85
commit d9294ef51e
@@ -17,6 +17,8 @@ vi.mock('../src/env', async (importOriginal) => {
};
});
import { mockJwksEndpoint, signAdminToken } from './testUtils/adminJwt';
import { docsBlockNoteSchema } from '@/blockSpecs';
import { initApp } from '@/servers';