deletes the cookie
(res http.ResponseWriter, req *http.Request)
| 110 | |
| 111 | // deletes the cookie |
| 112 | func logout(res http.ResponseWriter, req *http.Request) { |
| 113 | deleteCookie := http.Cookie{ |
| 114 | Name: "Auth", |
| 115 | Value: "none", |
| 116 | Expires: time.Now(), |
| 117 | } |
| 118 | |
| 119 | http.SetCookie(res, &deleteCookie) |
| 120 | } |
| 121 | |
| 122 | func main() { |
| 123 | http.HandleFunc("/", validate(protectedProfile)) |
nothing calls this directly
no outgoing calls
no test coverage detected