summaryrefslogtreecommitdiff
path: root/password_test.go
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-07-05 09:41:47 -0600
committerT <t@tjp.lol>2025-07-05 09:55:47 -0600
commitcaf5bb2ee84079365996a622ab8fc5ed510ef9a7 (patch)
tree5caf8bcbcda5ab5c8d70782fb733923c0ac70af3 /password_test.go
parent639ad6a02cbb4b713434671ec09f309aa5410921 (diff)
Add Auth.Clear() method and enhance middlewares to clear invalid cookiesHEADmain
- Add Auth.Clear() method that creates expired cookies (MaxAge: -1) to log out users - Enhance Clear() to remove existing Set-Cookie headers to comply with RFC 6265 - Update Required() and Optional() middlewares to automatically clear invalid cookies - Add comprehensive tests for all new functionality - Update documentation with Auth.Clear() usage examples
Diffstat (limited to 'password_test.go')
0 files changed, 0 insertions, 0 deletions