keryx 0.16.1 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keryx",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -385,7 +385,7 @@ export async function handleToken(req: Request): Promise<Response> {
385
385
  await api.redis.redis.del(`oauth:code:${code}`);
386
386
 
387
387
  // Validate client_id matches
388
- if (clientId && clientId !== codeData.clientId) {
388
+ if (clientId !== codeData.clientId) {
389
389
  return new Response(
390
390
  JSON.stringify({
391
391
  error: "invalid_grant",