users

package
v0.12.7 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{},
}

Functions

func New

func New(cfg *Config, db db.DB, l *zap.Logger) (sdkservices.Users, error)

Types

type Config

type Config struct {
	// If set, do not create a personal org for new users. Instead, set this as their default org.
	// This is useful for single-tenant setups where all users belong to the same org.
	DefaultOrgID string `koanf:"default_org_id"`
}

func (*Config) GetDefaultOrgID added in v0.12.7

func (c *Config) GetDefaultOrgID() (sdktypes.OrgID, error)

Jump to

Keyboard shortcuts

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