diff --git a/packages/server/src/api/endpoints/project.ts b/packages/server/src/api/endpoints/project.ts index be4bf83..ba75ba1 100644 --- a/packages/server/src/api/endpoints/project.ts +++ b/packages/server/src/api/endpoints/project.ts @@ -92,7 +92,7 @@ export function projectEndpoints(server: FastifyInstance): void { }); const apiToken = body.apiToken || (await generateApiToken()); - if (apiToken.length >= 32) { + if (apiToken.length < 32) { return reply.code(400).send({ error: 'Api token must be at least 32 characters long' }); }