type

AuthCredential

Private password and lockout state associated with one user document.

Properties

PropertyTypeDescription
UserDocumentThe User value.
PasswordHash[]byteThe PasswordHash value.
FailedLoginAttemptsintThe FailedLoginAttempts value.
LockedUntiltime.TimeThe LockedUntil value.
VerifiedboolThe Verified value.

How it works

Never crosses API or manifest boundaries.

Full signature

type AuthCredential struct { User Document PasswordHash []byte FailedLoginAttempts int LockedUntil time.Time Verified bool }

Source store/store.go:669