/** * Navidrome MCP Server - JWT Payload Decoder * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ /** The JWT carries no library list, so callers fetch it from `/api/user/{uid}`. */ interface NavidromeJwtClaims { uid: string; sub?: string; iss?: string; adm?: boolean; /** Seconds since the epoch. */ exp?: number; /** Seconds since the epoch. */ iat?: number; } /** * JWTs use base64url, which `atob` rejects. Every failure logs and returns null, so library scoping * degrades instead of throwing. */ export declare function decodeJwtPayload(token: string): NavidromeJwtClaims | null; export {}; //# sourceMappingURL=jwt-decode.d.ts.map