Versions in this module
v0
Mar 15, 2026
Changes in this version
type Identity
type LANIP
type OAuthState
type PasswordData
type Permission
type ProfileData
type RegisterData
type Role
type RolePermission
type Session
type User
type UserRole
Mar 10, 2026
Mar 10, 2026
Mar 10, 2026
Mar 7, 2026
Changes in this version
type AuthMode
type Module
—
darwin/amd64, linux/amd64, windows/amd64
Mar 7, 2026
Mar 7, 2026
Changes in this version
type Module
—
darwin/amd64, linux/amd64, windows/amd64
Mar 5, 2026
Mar 5, 2026
Mar 5, 2026
Changes in this version
Mar 5, 2026
Mar 5, 2026
Changes in this version
+
func GenerateJWT(secret []byte, userID string, ttl int) (string, error)
—
darwin/amd64, linux/amd64, windows/amd64
+
func ValidateJWT(secret []byte, token string) (string, error)
—
darwin/amd64, linux/amd64, windows/amd64
Mar 5, 2026
Mar 5, 2026
Changes in this version
Mar 4, 2026
Mar 4, 2026
Mar 3, 2026
Mar 2, 2026
Mar 2, 2026
Mar 2, 2026
Mar 2, 2026
Mar 2, 2026
Mar 2, 2026
Changes in this version
+
func AssignPermission(roleID, permissionID string) error
—
darwin/amd64, linux/amd64, windows/amd64
+
func CreatePermission(id, name, resource string, action string) error
—
darwin/amd64, linux/amd64, windows/amd64
+
func CreateRole(id string, code string, name, description string) error
—
darwin/amd64, linux/amd64, windows/amd64
+
func HasPermission(userID, resource string, action byte) (bool, error)
—
darwin/amd64, linux/amd64, windows/amd64
type Identity
type Session
type User
Feb 28, 2026
Feb 21, 2026
Feb 20, 2026
Changes in this version
Feb 20, 2026
Changes in this version
+
func CreateIdentity(userID, provider, providerID, email string) error
—
darwin/amd64, linux/amd64, windows/amd64
type User