natauth

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 9 Imported by: 0

README

TODO

  • TEMPL IS BLOAT?????
  • change + forgot security
  • success callback function on TOTP/signup

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	Middleware func(http.HandlerFunc) http.Handler
	OnClose    func()
}

func New

func New(params Params) (Handlers, error)

type Params

type Params struct {
	MiddlewaresBeforeAuth []alice.Constructor
	MiddlewaresAfterAuth  []alice.Constructor
	JwtConfig             web.PasswordJwtParams
	UsernameValidator     func(string) []error
	Redirects             password.PasswordRedirects
	Storage               storage.DbPassword
	Theme                 ui.Theme
	Locations             *web.Locations
	LogWriters            []io.Writer
}

Directories

Path Synopsis
providers
totp
stolen from: https://github.com/yitsushi/totp-cli/blob/8eb8d7cac1284c57a1416996fb0b5d0c9e002923/internal/security/otp.go
stolen from: https://github.com/yitsushi/totp-cli/blob/8eb8d7cac1284c57a1416996fb0b5d0c9e002923/internal/security/otp.go
test
app command
app/components
templ: version: v0.3.898
templ: version: v0.3.898
templ: version: v0.3.898
templ: version: v0.3.898

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL