Why is this behavior the default one and are there any security risks with using this method?
My understanding was that storing access_tokens in cookies is bad-practice since your app would be susceptible to CSRF attacks.
I understand that the cookie has the Domain attribute and is HttpOnly. This makes it more secure but, would it not be better to completely mitigate the risk of a CSRF attack by only storing the refresh_token in a cookie and the access_token in memory? Also, the SameSite attribute is present but why is it set to "Lax" as opposed to "Strict"?
Could you please provide more details about the reasoning behind this implementation?
Thank you!