diff --git a/coderd/httpmw/apikey.go b/coderd/httpmw/apikey.go index 1705df3262..11433624eb 100644 --- a/coderd/httpmw/apikey.go +++ b/coderd/httpmw/apikey.go @@ -380,14 +380,6 @@ func apiTokenFromRequest(r *http.Request) string { return cookie.Value } - // TODO: @emyrk in October 2022, remove this oldCookie check. - // This is just to support the old cli for 1 release. Then everyone - // must update. - oldCookie, err := r.Cookie("session_token") - if err == nil && oldCookie.Value != "" { - return oldCookie.Value - } - urlValue := r.URL.Query().Get(codersdk.SessionTokenKey) if urlValue != "" { return urlValue diff --git a/codersdk/client.go b/codersdk/client.go index 3c0e6a7b0d..90216dcdd8 100644 --- a/codersdk/client.go +++ b/codersdk/client.go @@ -83,13 +83,6 @@ func (c *Client) Request(ctx context.Context, method, path string, body interfac } req.Header.Set(SessionCustomHeader, c.SessionToken) - // Delete this custom cookie set in November 2022. This is just to remain - // backwards compatible with older versions of Coder. - req.AddCookie(&http.Cookie{ - Name: "session_token", - Value: c.SessionToken, - }) - if body != nil { req.Header.Set("Content-Type", "application/json") }