Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Store = sessions.NewCookieStore([]byte(os.Getenv("CICERONE_SESSION_KEY")))
Store the cookie store which is going to store session data in the cookie The Store key must be stored in the enviroment variable "SESSION_KEY"
Functions ¶
func GetCurrentUser ¶
GetCurrentUser returns the email of the logged in user
func IsLoggedIn ¶
IsLoggedIn will check if the user has an active session and return True
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.