Documentation
¶
Index ¶
Constants ¶
View Source
const ( REDIRECT_URI = "http://localhost:42069/callback" URI = "http://localhost:42069" PORT = "42069" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
AccessToken *tokens.AccessToken
RefreshToken *tokens.RefreshToken
}
func (*Session) Authenticate ¶
Authenticate is set to only run checks after the access token expiry period has elapsed. This is for faster runtime, should be perfectly okay unless token files are externally tappered. Checks if the access token is valid. If not, refreshes the access token. If the access token is not valid, reauthenticates s. Updating the token file.
Click to show internal directories.
Click to hide internal directories.