Skip to content

[Feature]: Return client errors from magic-link polling instead of 500s #12

@Bccorb

Description

@Bccorb

Problem statement

/magic-link/check currently returns 500 { error: "Invalid request" } for missing tokens and device mismatches, which should be treated as client or auth state errors, not server failures.

Proposed solution

Choose correct 400/401/404 semantics, align route schemas, and add integration coverage.

Alternatives considered

No response

Impact area

Developer experience

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions