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