config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	ClientId       string        // App keys for respective platforms
	ClientSecret   string        // App secrets for respective platforms
	RedirectUri    string        // Callback URL after successful login
	Scopes         []string      // Custom scope content for authorization platforms
	StateCacheTime time.Duration // Cache time for state
}

func NewAuthConfig

func NewAuthConfig(opts ...Option) *AuthConfig

type AuthSource

type AuthSource interface {
	Authorize() string
	AccessToken() string
	UserInfo() string
	GetSource() string
}

type Option

type Option struct {
	// contains filtered or unexported fields
}

func WithClientId

func WithClientId(clientId string) Option

func WithClientSecret

func WithClientSecret(clientSecret string) Option

func WithRedirectUrl

func WithRedirectUrl(redirectUrl string) Option

func WithScopes

func WithScopes(scopes []string) Option

Jump to

Keyboard shortcuts

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