token

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessTokenFromFile

func AccessTokenFromFile(file string) (*oauth2.Token, error)

AccessTokenFromFile Retrieves a token from a local file.

func AccessTokenFromWeb added in v1.2.2

func AccessTokenFromWeb(config *oauth2.Config) *oauth2.Token

AccessTokenFromWeb Request a token from the web, then returns the retrieved token.

func SaveAccessToken

func SaveAccessToken(path string, token *oauth2.Token)

SaveAccessToken Saves a token to a file path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL