add isAdmin to auth state

This commit is contained in:
jeffvli
2025-12-07 17:21:46 -08:00
parent 2f2dbbde3e
commit 4ddada1fe3
10 changed files with 51 additions and 3 deletions
@@ -131,6 +131,7 @@ export const NavidromeController: InternalControllerEndpoint = {
return {
credential: `u=${body.username}&s=${res.body.data.subsonicSalt}&t=${res.body.data.subsonicToken}`,
isAdmin: Boolean(res.body.data.isAdmin),
ndCredential: res.body.data.token,
userId: res.body.data.id,
username: res.body.data.username,