@cloudflare/workers-oauth-provider 0.0.0-89df9a6 → 0.0.0-9cd9ab4

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.
@@ -1076,6 +1076,11 @@ var OAuthHelpersImpl = class {
1076
1076
  }
1077
1077
  if (clientId) {
1078
1078
  const clientInfo = await this.lookupClient(clientId);
1079
+ if (!clientInfo) {
1080
+ throw new Error(
1081
+ `Invalid client. The clientId provided does not match to this client.`
1082
+ );
1083
+ }
1079
1084
  if (clientInfo && redirectUri) {
1080
1085
  if (!clientInfo.redirectUris.includes(redirectUri)) {
1081
1086
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/workers-oauth-provider",
3
- "version": "0.0.0-89df9a6",
3
+ "version": "0.0.0-9cd9ab4",
4
4
  "description": "OAuth provider for Cloudflare Workers",
5
5
  "main": "dist/oauth-provider.js",
6
6
  "types": "dist/oauth-provider.d.ts",