I have copied the SameSiteCookieManager Class from this documentation https://docs.microsoft.com/en-us/aspnet/samesite/owin-samesite to my project.
SameSiteCookieManager
I upd