Versions in this module Expand all Collapse all v1 v1.0.7 Apr 28, 2026 Changes in this version + var InvalidPasswordOrUserError = errors.New("the username or password is incorrect") + var RememberTokenDeleteError = errors.New("error removing remember token form storage") + var RememberTokenHashError = errors.New("error hashing remember token") + var RememberTokenStoreError = errors.New("error adding remember token to storage") + func HashPassword(password string) (*[]byte, error) + type Auth struct + AppName string + DB *database.Database + ErrorLog *log.Logger + Session *scs.SessionManager + func (a *Auth) Check(r *http.Request) bool + func (a *Auth) Login(w http.ResponseWriter, r *http.Request, email, password string) (bool, error) + func (a *Auth) Logout(w http.ResponseWriter, r *http.Request) (bool, error) + func (a *Auth) User(r *http.Request) *User + type RememberToken struct + CreatedAt time.Time + ID int + RememberToken string + UpdatedAt time.Time + UserID int + type User struct + Active int + CreatedAt time.Time + Email string + FirstName string + ID int + LastName string + Password string + UpdatedAt time.Time v1.0.7-rc Apr 28, 2026