cookie

package
v3.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClaims

type AuthClaims struct {
	Token *oauth2.Token `json:"token"`
	jwt.RegisteredClaims
	User model.User `json:"user"`
}

type Config

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

func Flags

func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) *Config

type Service

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

func New

func New(config *Config) Service

func (Service) Clear added in v3.4.0

func (s Service) Clear(w http.ResponseWriter, name string)

func (Service) Get

func (s Service) Get(r *http.Request, name string) (AuthClaims, error)

func (Service) Set

func (s Service) Set(ctx context.Context, w http.ResponseWriter, oauth2Token *oauth2.Token, user model.User, name string) bool

Jump to

Keyboard shortcuts

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