Part of AppLink login process

This commit is contained in:
simojenki
2021-02-21 09:35:34 +11:00
parent 302efd2878
commit c26a325ee1
20 changed files with 644 additions and 253 deletions

View File

@@ -6,7 +6,17 @@ const navidrome = process.env["BONOB_NAVIDROME_URL"];
const u = process.env["BONOB_USER"];
const t = Md5.hashStr(`${process.env["BONOB_PASSWORD"]}${s}`);
export class Navidrome {
export type Credentials = { username: string, password: string }
export interface MusicService {
login(credentials: Credentials): boolean
}
export class Navidrome implements MusicService {
login(_: Credentials) {
return false
}
ping = (): Promise<boolean> =>
axios
.get(
@@ -18,3 +28,6 @@ export class Navidrome {
return false;
});
}