feat(api): declare identity contract for registration, verification, and sessions
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user