login_code_invalid
The 6-digit code doesn’t match the newest sign-in email for that address, it expired, or it was tried 5 times.
HTTP 400 · invalid_request_error · not retryable
What happened
Section titled “What happened”The 6-digit code doesn’t match the newest sign-in email for that address, it expired, or it was tried 5 times. Every one of these, and an address with no account, gets the same answer, so the code form can’t be used to find out who has an account.
What to do
Section titled “What to do”Check the latest email, or ask for a new code at /login.
Example
Section titled “Example”{ "error": { "type": "invalid_request_error", "code": "login_code_invalid", "message": "That code doesn't match, or it has expired. Check the latest email, or get a new code.", "param": null, "request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d", "doc_url": "https://docs.deedglass.com/errors/login_code_invalid" }}The message is for a person and can get more exact over time: branch on type and code, never on the message.
In the SDKs
Section titled “In the SDKs”| SDK | Raised as |
|---|---|
TypeScript (@deedglass/sdk) |
InvalidRequestError with code === "login_code_invalid" |
Python (deedglass) |
deedglass.InvalidRequestError with .code == "login_code_invalid" |