Documentation ¶
Index ¶
- func GetAuthCodeUrl(config *oauth2.Config) (string, string, string)
- func GetGoogleConfig(filePath string, scopes ...string) (*oauth2.Config, error)
- func GetTokenFromAuthCode(ctx context.Context, config *oauth2.Config, authCode string, verifier string) (*oauth2.Token, error)
- func GetTokenFromFile(filePath string) (*oauth2.Token, error)
- func SaveTokenToFile(filePath string, token *oauth2.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthCodeUrl ¶
Returns a tuple of strings (url, state, verifier)
Parameters:
config - the oauth2 config
func GetGoogleConfig ¶
func GetTokenFromAuthCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.