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.
2 parents e36f880 + b4d1bc7 commit 2feac76Copy full SHA for 2feac76
client/src/lib/auth.ts
@@ -134,6 +134,12 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
134
}
135
136
redirectToAuthorization(authorizationUrl: URL) {
137
+ if (
138
+ authorizationUrl.protocol !== "http:" &&
139
+ authorizationUrl.protocol !== "https:"
140
+ ) {
141
+ throw new Error("Authorization URL must be HTTP or HTTPS");
142
+ }
143
window.location.href = authorizationUrl.href;
144
145
0 commit comments