@cloudflare/workers-oauth-provider 0.0.0-1804446 → 0.0.0-373bacf
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 +1 -1
- package/package.json +1 -1
package/dist/oauth-provider.js
CHANGED
|
@@ -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("
|
|
1224
|
+
if (!redirectUri.startsWith("http://") && !redirectUri.startsWith("https://")) {
|
|
1225
1225
|
throw new Error("Invalid redirect URI");
|
|
1226
1226
|
}
|
|
1227
1227
|
if (responseType === "token" && !this.provider.options.allowImplicitFlow) {
|
package/package.json
CHANGED