mirror of
https://github.com/weloe/token-go.git
synced 2025-10-11 02:10:15 +08:00
20 lines
284 B
Go
20 lines
284 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: "",
|
|
}
|
|
}
|