This commit is contained in:
Simon J
2023-10-11 12:45:27 +11:00
committed by GitHub
parent a5689c3d4b
commit 8ef9ca80b6
2 changed files with 30 additions and 1 deletions

View File

@@ -956,6 +956,7 @@ export class Subsonic implements MusicService {
};
if (credentials.type == "navidrome") {
// todo: there does not seem to be a test for this??
return Promise.resolve({
...genericSubsonic,
flavour: () => "navidrome",
@@ -964,7 +965,7 @@ export class Subsonic implements MusicService {
TE.tryCatch(
() =>
axios.post(
`${this.url}/auth/login`,
this.url.append({ pathname: '/auth/login' }).href(),
_.pick(credentials, "username", "password")
),
() => new AuthFailure("Failed to get bearerToken")