@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.
- package/dist/oauth-provider.js +5 -0
- package/package.json +1 -1
package/dist/oauth-provider.js
CHANGED
|
@@ -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