Skip to content

Moonbase for Plex: Seerr Plex sign-in always fails with "That Plex account isn't the one signed in to Moonbase" #402

Open

Description

@casjengu

Plugin version

3.1.1

Server

Plex

Server version

X

Area

Seerr integration

What happened

Version: Moonbase for Plex 3.1.1 (ghcr.io/moonfin-client/moonbase-plex:latest, commit afb2e73), Seerr 3.5.2 (Plex as media server, Plex sign-in only)

What happens

With the Seerr integration enabled, signing in to Seerr from the Moonfin app (auth type plex) always fails with:

That Plex account isn't the one signed in to Moonbase.

This happens for the server owner, with the same Plex account that is signed in to Moonbase and to Seerr. The Seerr user exists and has a plexId set in Seerr's database.

Cause

Go/internal/api/seerr.go, handleSeerrLogin:

session, user, err := seerrSignIn(ctx, cfg.SeerrURL, endpoint, payload)
...
if endpoint == "auth/plex" && user.PlexID != caller.UserID {
    seerrSignOut(ctx, cfg.SeerrURL, session)
    writeJSON(w, http.StatusForbidden, M{"error": "That Plex account isn't the one signed in to Moonbase.", ...})

user is decoded from the response body of Seerr's POST /api/v1/auth/plex. Seerr answers with user.filter(), and User.filteredFields contains plexId (and email):

// seerr dist/entity/User.js
User.filteredFields = ['email', 'plexId', 'password', 'resetPasswordGuid', ...]
// seerr dist/routes/auth.js (POST /auth/plex)
return res.status(200).json(user?.filter() ?? {});

So plexId is never in the response, user.PlexID is always 0, and the check rejects every Plex sign-in. The existing tests probably don't catch this because the fake Seerr server returns plexId.

plexId has been in Seerr's filteredFields since at least v2.0.0, so this check has likely never passed against a real Seerr since the Plex Seerr proxy was added in 102bd6c (2026-11-10).

Suggested fix

Check the token before it goes to Seerr instead of relying on plexId in Seerr's answer. For example:

  • resolve body.AuthToken with the same plex.tv lookup Moonbase uses for callers and compare it with caller.UserID, or
  • simply use the caller's own verified token (caller.Token) for auth/plex instead of the one in the request body.

Either way, the "it has to be the caller's own account" guarantee stays, and it no longer depends on a field that Seerr filters out.

Steps to reproduce

  1. Moonbase for Plex 3.1.1, owner signed in on /admin.
  2. Seerr (Plex sign-in) set under Integrations → Seerr Integration.
  3. In a Moonfin app connected to Moonbase, sign in to Seerr with Plex.
  4. → 403 "That Plex account isn't the one signed in to Moonbase."

Frequency

Always

Screenshot of the problem

image

Server logs / errors (optional)

Activity

  1. added
    Bug
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSeerr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions