mirror of
https://github.com/weloe/token-go.git
synced 2025-10-22 06:59:37 +08:00
feat: add config
This commit is contained in:
19
config/cookie.go
Normal file
19
config/cookie.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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: "",
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user