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 +1 -1
- package/util/oauthHandlers.ts +1 -1
package/package.json
CHANGED
package/util/oauthHandlers.ts
CHANGED
|
@@ -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
|
|
388
|
+
if (clientId !== codeData.clientId) {
|
|
389
389
|
return new Response(
|
|
390
390
|
JSON.stringify({
|
|
391
391
|
error: "invalid_grant",
|