Skip to content

Unable to detect timestamp validity on tokens that use the "expires_in" vs "expires_at" Oauth response #97

Open
@yinzara

Description

@yinzara

When using the mcp-remote tool and getting an oauth token issued back. I keep getting the following error printed in the logs and it ends up not ever refreshing the token even when expired.

⚠️ WARNING: Invalid expires_at detected while reading tokens ⚠️

The actual access token looks like this:

{
  "access_token": "my-very-secret-token",
  "token_type": "Bearer",
  "expires_in": 28800,
  "scope": "prism"
}

My very secret token also has an exp claim that is valid and in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions