Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2023 Changes in this version + const LoginCookieDuration + const LoginCookieName + const SchemeArgon2 + var ErrInvalidCookie = errors.New("login: cookie is invalid") + func ExpireLoginCookie(w http.ResponseWriter, domain string) + func GetLoginCookie(w http.ResponseWriter, r *http.Request, domain string) (int64, int, string, error) + func Protect(scheme int, credential, salt []byte) []byte + func SetLoginCookie(w http.ResponseWriter, domain, token string, loginID int64, uid int) + func Update(scheme int, credential, salt []byte) ([]byte, int)