diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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()) ``` |