cookies

package
v0.1.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CookieHeaderName = "Cookie"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cookier

type Cookier interface {
	Cookies() *Cookies
}

func NewCookier

func NewCookier(getter kv.Getter) Cookier

type Cookies

type Cookies struct {
	Domain   string
	Secure   bool
	SameSite int
}

func (*Cookies) ClearTokensCookies

func (c *Cookies) ClearTokensCookies(w http.ResponseWriter)

func (*Cookies) SetAccessToken

func (c *Cookies) SetAccessToken(w http.ResponseWriter, token string, exp time.Time)

func (*Cookies) SetRefreshToken

func (c *Cookies) SetRefreshToken(w http.ResponseWriter, token string, exp time.Time)

Jump to

Keyboard shortcuts

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