Commit 10ad814
authored
* fix[faustwp-core]: (#2313) add security flags to removeCookie()
removeCookie() expires the refresh token cookie with only the
expires attribute, missing the path, sameSite, secure, and httpOnly
flags that setCookie() uses when setting it. Without a matching
path: '/', the browser may not delete the correct cookie on logout.
Add the same security attributes used in setRefreshToken() so the
browser correctly identifies and expires the target cookie.
Closes #2313
* chore: add changeset for cookie removal fix
---------
Co-authored-by: latenighthackathon <latenighthackathon@users.noreply.github.com>
1 parent 3e54dd2 commit 10ad814
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
0 commit comments