We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6a98a commit 4e6df92Copy full SHA for 4e6df92
client/src/lib/auth.ts
@@ -129,6 +129,9 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
129
}
130
131
redirectToAuthorization(authorizationUrl: URL) {
132
+ if (authorizationUrl.protocol !== "http:" && authorizationUrl.protocol !== "https:") {
133
+ throw new Error("Authorization URL must be HTTP or HTTPS");
134
+ }
135
window.location.href = authorizationUrl.href;
136
137
0 commit comments