fix: correct authState.authorizationUrl type to URL
This commit is contained in:
parent
7792125a02
commit
71583caf3b
1 changed files with 11 additions and 7 deletions
|
|
@ -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:") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue