Documentation ¶
Index ¶
- func GetSession(sessionId string) *model.LoginSession
- func GetSessionIdFromCookie(c *gin.Context) *string
- func GetTokenFromCallback(callbackContext *gin.Context) (*oauth2.Token, *SpotifeteError)
- func GetValidSessionFromCookie(c *gin.Context) *model.LoginSession
- func InvalidateSession(sessionId string)
- func NewClientForToken(token *oauth2.Token) spotify.Client
- func NewSession(callbackRedirectUrl string) (newSession model.LoginSession, spotifyAuthUrl string, error *SpotifeteError)
- func RemoveCookie(c *gin.Context)
- func SetCookie(c *gin.Context, sessionId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSession ¶
func GetSession(sessionId string) *model.LoginSession
func GetSessionIdFromCookie ¶
func GetTokenFromCallback ¶
func GetValidSessionFromCookie ¶
func GetValidSessionFromCookie(c *gin.Context) *model.LoginSession
func InvalidateSession ¶
func InvalidateSession(sessionId string)
func NewSession ¶
func NewSession(callbackRedirectUrl string) (newSession model.LoginSession, spotifyAuthUrl string, error *SpotifeteError)
func RemoveCookie ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.