nArchitecture
nArchitecture copied to clipboard
feat(auth): edit cookie options
While working with Angular client project, the refresh token is not saved as a cookie by the browser because the settings do not allow it. As a result, I added two settings to fix the error I received: "Secure: true" and "SameSite: none".
Cookie settings: Cookie settings per Chrome and Firefox update in 2021: SameSite=None Secure
Check this: https://stackoverflow.com/questions/46288437/set-cookies-for-cross-origin-requests