diff --git a/server/api/plextv.ts b/server/api/plextv.ts index 0892f1d40..8d61e51e2 100644 --- a/server/api/plextv.ts +++ b/server/api/plextv.ts @@ -377,11 +377,14 @@ class PlexTvAPI extends ExternalAPI { profileId: string, pin: string ): Promise { + const urlPath = `/api/v2/home/users/${profileId}/switch`; + try { const response = await axios.post( - `https://clients.plex.tv/api/v2/home/users/${profileId}/switch`, + urlPath, { pin }, { + baseURL: 'https://clients.plex.tv', headers: { Accept: 'application/json', 'Content-Type': 'application/json',