fix: correct authState.authorizationUrl type to URL

This commit is contained in:
Max Gerber 2025-09-05 18:40:24 -07:00
commit 71583caf3b
No known key found for this signature in database
GPG key ID: BB9C1A99266069B0

View file

@ -5,7 +5,7 @@
* @param url - The URL string to validate
* @throws Error if the URL has an unsafe protocol
*/
export function validateRedirectUrl(url: string): void {
export function validateRedirectUrl(url: string | URL): void {
try {
const parsedUrl = new URL(url);
if (parsedUrl.protocol !== "http:" && parsedUrl.protocol !== "https:") {