Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Store will hold all session data Store *sessions.CookieStore // TODO: Move to token based authentication in future // CookieName cookie key which will be used to get the session from store CookieName string = "cookie-name" )
Functions ¶
Types ¶
type UserSession ¶
type UserSession struct { UserID string `json:"userID"` AccessToken string `json:"accessToken"` IsAuthenticated bool `json:"isAuthenticated"` }
UserSession struct to store user session details
Click to show internal directories.
Click to hide internal directories.