Documentation ¶
Index ¶
- type Session
- func (data *Session) GetAccessToken() string
- func (data *Session) GetExpiration() uint64
- func (data *Session) GetOauth2Token() *goauth2.Token
- func (data *Session) RefreshExpiration() error
- func (data *Session) SetAccessToken(accessToken string)
- func (data *Session) SetRefreshToken(refreshToken string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session map[string]interface{}
Session is a map respresentation of the session data
func (*Session) GetAccessToken ¶
GetAccessToken retrieves the access token from the session data
func (*Session) GetExpiration ¶
GetExpiration returns the expiration period from the session data
func (*Session) GetOauth2Token ¶
GetOauth2Token returns an oauth2 token derived from the session data. Returns nil if the user is not yet signed in
func (*Session) RefreshExpiration ¶
RefreshExpiration updates the 'expires' value on the session to the current time plus the expiration period
func (*Session) SetAccessToken ¶
SetAccessToken sets the access token on the session data map
func (*Session) SetRefreshToken ¶
SetRefreshToken sets the refresh token on the session data map
Click to show internal directories.
Click to hide internal directories.