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 d21e51eCopy full SHA for d21e51e
client/src/lib/auth.ts
@@ -129,6 +129,12 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
129
}
130
131
redirectToAuthorization(authorizationUrl: URL) {
132
+ if (
133
+ authorizationUrl.protocol !== "http:" &&
134
+ authorizationUrl.protocol !== "https:"
135
+ ) {
136
+ throw new Error("Authorization URL must be HTTP or HTTPS");
137
+ }
138
window.location.href = authorizationUrl.href;
139
140
0 commit comments