chore: generate
This commit is contained in:
parent
40b275d7e6
commit
0233dd1b39
3 changed files with 9 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ export function parseRedirectUri(redirectUri?: string): { port: number; path: st
|
|||
|
||||
try {
|
||||
const url = new URL(redirectUri)
|
||||
const port = url.port ? parseInt(url.port, 10) : (url.protocol === "https:" ? 443 : 80)
|
||||
const port = url.port ? parseInt(url.port, 10) : url.protocol === "https:" ? 443 : 80
|
||||
const path = url.pathname || OAUTH_CALLBACK_PATH
|
||||
return { port, path }
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue