correctly filter the pkce cookie by name

This commit is contained in:
Kenneth Bingham 2024-01-09 16:34:41 -05:00
parent df829bf225
commit 8674edc23e
No known key found for this signature in database
GPG Key ID: 31709281860130B6

View File

@ -375,7 +375,7 @@ func deleteZrokCookies(w http.ResponseWriter, r *http.Request) {
// JWT to ensure it matches the requested share and will send the client back to the OAuth provider if it does not
// match.
for _, cookie := range cookies {
if cookie.Name != "zrok-access" || cookie.Domain != "pkce" {
if cookie.Name != "zrok-access" || cookie.Name != "pkce" {
r.AddCookie(cookie)
}
}