package
Version:
v0.0.0-...-914d8c5
Opens a new window with list of versions in this module.
Published: Jan 1, 2016
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Check if the given userId already exist
func UpdateLastConnection(userId string)
Update the last connection date for a given userId
type RefreshTokenResponse struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
TokenType string `json:"token_type"`
}
type ResfreshTokenConfig struct {
ClientId string `json:"client_id"`
ClientSecret string `json:"client_secret"`
GrantType string `json:"grant_type"`
RefreshToken string `json:"refresh_token"`
}
type User struct {
UserId string `json:"userId"`
RefreshToken string `json:"-"`
Email string `json:"email"`
LastConnection time.Time `json:"lastConnection"`
Picture string `json:"picture"`
}
The feed
Get the User from a given userId
Save the user in the database
Source Files
¶
Click to show internal directories.
Click to hide internal directories.