feat(api): declare identity contract for registration, verification, and sessions

This commit is contained in:
shira committed 2026-10-05 22:57:19 +03:00
1 parent 197661145e
commit 653f3775f8
86 files changed
+11826 -148

No files matched your search

@@ -630,10 +630,20 @@ func (s *ProblemCode) Decode(d *jx.Decoder) error {
switch ProblemCode(v) {
case ProblemCodeValidationFailed:
*s = ProblemCodeValidationFailed
case ProblemCodeVerificationTokenInvalid:
*s = ProblemCodeVerificationTokenInvalid
case ProblemCodeVerificationTokenExpired:
*s = ProblemCodeVerificationTokenExpired
case ProblemCodeUnauthenticated:
*s = ProblemCodeUnauthenticated
case ProblemCodeInvalidCredentials:
*s = ProblemCodeInvalidCredentials
case ProblemCodeForbidden:
*s = ProblemCodeForbidden
case ProblemCodeEmailNotVerified:
*s = ProblemCodeEmailNotVerified
case ProblemCodeCsrfCheckFailed:
*s = ProblemCodeCsrfCheckFailed
case ProblemCodeNotFound:
*s = ProblemCodeNotFound
case ProblemCodeMethodNotAllowed: