Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth[User any, ID any] struct { SessionManager *scs.SessionManager // contains filtered or unexported fields }
Auth is an authentication middleware.
func New ¶
func New[User any, ID any](f LookupFunc[User, ID]) *Auth[User, ID]
New returns a new Auth.
type LookupFunc ¶
LookupFunc is a function that returns a user for a given id.
Click to show internal directories.
Click to hide internal directories.