token

package
v0.0.0-...-8d41f68 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(pCtx context.Context, cfg *config.Config) (*oauth2.Token, error)

Get returns a Token, delegating the to browser, if needed.

func XOAuth2Token

func XOAuth2Token(ctx context.Context, cfg *config.Config) (string, error)

XOAuth2Token returns an XOAuth2 token formatted for use in SMTP and IMAP settings.

Types

type BrowserTokenSource

type BrowserTokenSource struct {
	// contains filtered or unexported fields
}

func (*BrowserTokenSource) Token

func (s *BrowserTokenSource) Token() (*oauth2.Token, error)

Token retrieves a token from a browser interaction.

Jump to

Keyboard shortcuts

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