Files
token-go/config/cookie.go
2023-06-09 03:01:48 +08:00

20 lines
285 B
Go

package config
type CookieConfig struct {
Domain string
Path string
Secure bool
HttpOnly bool
SameSite string
}
func DefaultCookieConfig() *CookieConfig {
return &CookieConfig{
Domain: "",
Path: "/",
Secure: false,
HttpOnly: false,
SameSite: "",
}
}