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 5487132 commit 0bda2acCopy full SHA for 0bda2ac
src/utils/extractAuthFromUrl.ts
@@ -15,5 +15,11 @@ export function extractAuthFromUrl(url: string): { url: string, auth: Auth } {
15
// Remove credentials from URL
16
url = url.replace(`${userpass}@`, '')
17
// Has credentials, return the fetch-safe URL and the parsed credentials
18
- return { url, auth: { username, password } }
+ return {
19
+ url: url,
20
+ auth: {
21
+ username: decodeURIComponent(username),
22
+ password: decodeURIComponent(password)
23
+ }
24
25
}
0 commit comments