(ctx context.Context, w http.ResponseWriter)
| 232 | } |
| 233 | |
| 234 | func (a *API) clearCookieToken(ctx context.Context, w http.ResponseWriter) { |
| 235 | config := getConfig(ctx) |
| 236 | http.SetCookie(w, &http.Cookie{ |
| 237 | Name: config.Cookie.Key, |
| 238 | Value: "", |
| 239 | Expires: time.Now().Add(-1 * time.Hour * 10), |
| 240 | MaxAge: -1, |
| 241 | Secure: true, |
| 242 | HttpOnly: true, |
| 243 | Path: "/", |
| 244 | }) |
| 245 | } |
no test coverage detected