cookie

package
v0.0.0-...-0f031a4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *Options) *http.Cookie

func NewAccessToken

func NewAccessToken(access []byte) *http.Cookie

func NewCSRF

func NewCSRF(access []byte) *http.Cookie

func NewRefreshToken

func NewRefreshToken(refresh []byte) *http.Cookie

func SetExpiredToken

func SetExpiredToken(c echo.Context)

func SetToken

func SetToken(c echo.Context, access []byte, refresh []byte)

Types

type Options

type Options struct {
	Name     string
	Value    string
	Path     string
	Domain   string
	SameSite http.SameSite
	HttpOnly bool
	MaxAge   int
}

Jump to

Keyboard shortcuts

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