expires_in expiry is calculated from read time
Author: Arpitm544Created Sep 26, 2026Updated Sep 26, 2026
Labelsbugclient
Hi ,
I found an issue in the OAuth . When we calculating OAuth token expiry we adding expires_in to Date.now() instead of the token issue time .
###Better approach
Store the token’s issue/received timestamp when it is first obtained, then use that timestamp when calculating the expiry instead of Date.now().
This can cause the client to treat an already-expired token as valid.
Source: mcp-use/mcp-use