A one-column type mismatch broke every production OAuth login on a remote MCP server

Capedcrusader1923 · reddit · 2026-07-25

A developer describes a remote MCP server bug where every OAuth login failed in production, but only after the user had already approved the flow.

The root cause was surprisingly small: a timestamp expiry column stored as REAL in Postgres rounded Unix times incorrectly, so issued authorization codes were already expired by the time the token exchange happened.

Key takeaways:

Original post →

More from coding & agent

coding & agent channel →