@cloudflare/workers-oauth-provider 0.0.9 → 0.0.10

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.
@@ -1221,7 +1221,7 @@ var OAuthHelpersImpl = class {
1221
1221
  const state = url.searchParams.get("state") || "";
1222
1222
  const codeChallenge = url.searchParams.get("code_challenge") || void 0;
1223
1223
  const codeChallengeMethod = url.searchParams.get("code_challenge_method") || "plain";
1224
- if (!redirectUri.startsWith("http://") && !redirectUri.startsWith("https://")) {
1224
+ if (redirectUri.startsWith("javascript:") || redirectUri.startsWith("data:") || redirectUri.startsWith("vbscript:") || redirectUri.startsWith("file:") || redirectUri.startsWith("mailto:") || redirectUri.startsWith("blob:")) {
1225
1225
  throw new Error("Invalid redirect URI");
1226
1226
  }
1227
1227
  if (responseType === "token" && !this.provider.options.allowImplicitFlow) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/workers-oauth-provider",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "OAuth provider for Cloudflare Workers",
5
5
  "main": "dist/oauth-provider.js",
6
6
  "types": "dist/oauth-provider.d.ts",