feat(identity): add server sessions and audited mail recovery
This commit is contained in:
1 parent
20c03288d6
commit
4ee53d9a74
58 files changed
+5359
-567
No files matched your search
@@ -26,6 +26,18 @@ var (
|
||||
// ErrVerificationTokenExpired reports an email verification token past its
|
||||
// expiry time.
|
||||
ErrVerificationTokenExpired = errors.New("verification token expired")
|
||||
|
||||
// ErrInvalidCredentials represents an unknown account or an incorrect
|
||||
// password with one public outcome.
|
||||
ErrInvalidCredentials = errors.New("invalid credentials")
|
||||
|
||||
// ErrEmailNotVerified reports correct credentials for an unverified
|
||||
// account. It never creates a session.
|
||||
ErrEmailNotVerified = errors.New("email not verified")
|
||||
|
||||
// ErrUnauthenticated reports a missing, invalid, expired, idle, or revoked
|
||||
// server session.
|
||||
ErrUnauthenticated = errors.New("unauthenticated")
|
||||
)
|
||||
|
||||
// RateLimitedError carries how long the caller waits before a repeat can be
|
||||
|
||||
Reference in new issue
Block a user