mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Auth tokens back to simple strings as private key used for token refresh which not doing
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import axios from "axios";
|
||||
import { Md5 } from "ts-md5/dist/md5";
|
||||
import { AuthToken } from "./link_codes";
|
||||
|
||||
const s = "foobar100";
|
||||
const navidrome = process.env["BONOB_NAVIDROME_URL"];
|
||||
@@ -14,7 +13,7 @@ export function isSuccess(authResult: AuthSuccess | AuthFailure): authResult is
|
||||
}
|
||||
|
||||
export type AuthSuccess = {
|
||||
authToken: AuthToken
|
||||
authToken: string
|
||||
userId: string
|
||||
nickname: string
|
||||
}
|
||||
@@ -29,7 +28,7 @@ export interface MusicService {
|
||||
|
||||
export class Navidrome implements MusicService {
|
||||
login({ username }: Credentials) {
|
||||
return { authToken: { value: `${username}`, version: "1" }, userId: username, nickname: username }
|
||||
return { authToken: `v1:${username}`, userId: username, nickname: username }
|
||||
}
|
||||
|
||||
ping = (): Promise<boolean> =>
|
||||
|
||||
Reference in New Issue
Block a user