Versions in this module Expand all Collapse all v1 v1.6.391 Jul 2, 2024 Changes in this version + const EmailNotVerified + const EmailTypePassRecovery + const EmailTypeVerifyEmailNewAcc + const EmailTypeVerifyUpdatedEmail + const EmailUpdateKeyPrefix + const EmailVerificationKeyPrefix + const EmailVerified + const EmailVerifyNotRequired + const PasswordRecoveryKeyPrefix + var InMemorySecret2FA = make(map[uint64]Secret2FA) + type Auth struct + AuthID uint64 + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Email string + EmailCipher string + EmailHash string + EmailNonce string + Password string + UpdatedAt time.Time + VerifyEmail int8 + func (v *Auth) UnmarshalJSON(b []byte) error + func (v Auth) MarshalJSON() ([]byte, error) + type AuthPayload struct + Email string + OTP string + PassNew string + PassRepeat string + Password string + RecoveryKey string + SecretCode string + VerificationCode string + type HTTPResponse struct + Message interface{} + type KeyValue struct + Key string + Value string + type Secret2FA struct + Image string + PassSHA []byte + Secret []byte + type TempEmail struct + CreatedAt time.Time + Email string + EmailCipher string + EmailHash string + EmailNonce string + ID uint64 + IDAuth uint64 + Password string + UpdatedAt time.Time + type TwoFA struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ID uint64 + IDAuth uint64 + KeyBackup string + KeyMain string + Status string + UUIDEnc string + UUIDSHA string + UpdatedAt time.Time + type TwoFABackup struct + Code string + CodeHash string + CreatedAt time.Time + ID uint64 + IDAuth uint64