implement auth using Auth0

This commit is contained in:
2025-12-29 23:49:23 -07:00
parent c9100383e4
commit cc74842e63
18 changed files with 797 additions and 212 deletions
+11
View File
@@ -0,0 +1,11 @@
package site
import "net/http"
func deleteCookieInResponse(w http.ResponseWriter, name string) {
w.Header().Set("Set-Cookie", (&http.Cookie{
Name: name,
Path: "/",
MaxAge: -1, // expire the cookie
}).String())
}