Documentation
¶
Overview ¶
Package config defines global configuration options and functional option helpers for the Auth engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds the main settings used when constructing an Auth instance.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config initialized with sensible default values.
type Option ¶
type Option func(*Config)
Option represents a functional configuration option for Auth.
func WithBcryptCost ¶
WithBcryptCost sets a custom bcrypt cost for password hashing.
func WithPlugins ¶
WithPlugins registers one or more modular authentication plugins into the Auth engine.
Click to show internal directories.
Click to hide internal directories.