added nats + worker modules
This commit is contained in:
17
auth/auth0/options.go
Normal file
17
auth/auth0/options.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package auth0
|
||||
|
||||
import "log/slog"
|
||||
|
||||
type Option func(deps *Config)
|
||||
|
||||
func WithLogger(l *slog.Logger) Option {
|
||||
return func(cfg *Config) {
|
||||
cfg.Logger = l
|
||||
}
|
||||
}
|
||||
|
||||
func WithSessions(s SessionManager) Option {
|
||||
return func(cfg *Config) {
|
||||
cfg.Sessions = s
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user