feat(identity): confirm registration email atomically

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 09:12:15 +03:00
1 parent 8e7ce8d71c
commit fade4e76e4
75 files changed
+4188 -403

No files matched your search

@@ -18,6 +18,14 @@ var (
// ErrInvalidField reports a request value outside its rules.
// errors.As with *InvalidFieldError yields the JSON Pointer of the field.
ErrInvalidField = errors.New("invalid request field")
// ErrVerificationTokenInvalid reports an unknown, used, replaced, or
// otherwise unusable email verification token.
ErrVerificationTokenInvalid = errors.New("verification token invalid")
// ErrVerificationTokenExpired reports an email verification token past its
// expiry time.
ErrVerificationTokenExpired = errors.New("verification token expired")
)
// RateLimitedError carries how long the caller waits before a repeat can be