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
@@ -91,6 +91,7 @@ export const JellyfinController: InternalControllerEndpoint = {
return {
credential: res.body.AccessToken,
isAdmin: Boolean(res.body.User.Policy.IsAdministrator),
userId: res.body.User.Id,
username: res.body.User.Name,
};