Closed
Description
When attempting to log in to Convex via the CLI using:
npx convex dev
I encountered a consistent error where the login process would fail, even after confirming in the browser, Though the user code was correct each time .
What I did:
- Ran npx convex dev in the terminal.
- The CLI prompted me to log in and opened the browser with the device code.
- I confirmed the login in the browser successfully.
However, the terminal returned this error:
✖ Login failed with error: RPError: JWT expired, now 1751073925, exp 1751028974
Root Cause:
The issue was caused by my system clock being out of sync with the actual time for my timezone. The JWT token issued during login was already considered expired due to this mismatch.
Solution:
After adjusting my system time to match the correct local time (by enabling “Set time automatically” in Windows), the login succeeded without any issues.
Metadata
Metadata
Assignees
Labels
No labels