summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc.go b/doc.go
index 8d60f2a..12c314d 100644
--- a/doc.go
+++ b/doc.go
@@ -39,6 +39,9 @@
// 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())
//