summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index d5d7882..da36cad 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,9 @@ http.Handle("GET /protected", auth.Required(protectedHandler))
user := UserData{ID: 123, Name: "John"}
auth.Set(w, user)
+// Clear authentication cookie (logout)
+auth.Clear(w)
+
// Get authenticated data
user, ok := auth.Get(r.Context())
```