Discover Packages
github.com/17xande-dev/gowebkit/template/sqlite
internal
auth
package
Version:
v0.3.3
Opens a new window with list of versions in this module.
Published: Nov 28, 2026
License: MIT-0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package auth holds account and credential types and application policy.
HashPassword checks the application's policy before calling the password kit.
NewToken returns a cookie-safe encoding of 32 random bytes.
NormalizeEmail validates a mailbox and keeps its canonical account key.
ValidatePassword enforces the same length policy for every password write.
Role controls access to administrative actions.
const (
RoleAdmin Role = "admin"
RoleMember Role = "member"
)
Session holds the times used to judge a stored session against the policy.
SetupState records a one-time token; a consumed token cannot be reissued.
TokenHash is the SHA-256 digest persisted instead of a bearer credential.
HashToken hashes the exact credential string without normalizing it.
User is a local account and its sign-in state.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.