Documentation
¶
Index ¶
Constants ¶
View Source
const ( CookieName = "support_session_token" TokenType = "support_session" TTL = 1 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func ClearCookie ¶
func ClearCookie(w http.ResponseWriter, r *http.Request)
ClearCookie deletes the support session cookie.
func GenerateToken ¶
GenerateToken creates a signed JWT for a support session.
func ReadCookie ¶
ReadCookie extracts the support session token from the request, if present.
Types ¶
Click to show internal directories.
Click to hide internal directories.