fix: temp change reset cookie to non secure
This commit is contained in:
parent
da9d0f8dda
commit
5fb7b16c96
1 changed files with 3 additions and 2 deletions
|
|
@ -293,8 +293,9 @@ func (s Server) Logout(ctx context.Context, req auth.LogoutRequestObject) (auth.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete cookies by setting MaxAge negative
|
// Delete cookies by setting MaxAge negative
|
||||||
ginCtx.SetCookie("access_token", "", -1, "/api", "", true, true)
|
// TODO: change secure to true
|
||||||
ginCtx.SetCookie("refresh_token", "", -1, "/auth", "", true, true)
|
ginCtx.SetCookie("access_token", "", -1, "/api", "", false, true)
|
||||||
|
ginCtx.SetCookie("refresh_token", "", -1, "/auth", "", false, true)
|
||||||
ginCtx.SetCookie("xsrf_token", "", -1, "/", "", false, false)
|
ginCtx.SetCookie("xsrf_token", "", -1, "/", "", false, false)
|
||||||
|
|
||||||
return auth.Logout200Response{}, nil
|
return auth.Logout200Response{}, nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue