package
0.0.0-20250306163500-5f3bb2705e1f
Repository: https://github.com/versoriumx/teleport.git
Documentation: pkg.go.dev
# Functions
ClearCookie wipes the session cookie to invalidate the user session.
DecodeCookie returns the [Cookie] from the provided string.
EncodeCookie returns the string representation of a [Cookie] that should be used to store the user session in the cookies of a [http.ResponseWriter].
SetCookie encodes the provided user and session id via [EncodeCookie] and then sets the [http.Cookie] of the provided [http.ResponseWriter].
# Constants
CookieName is the name of the session cookie.