google

package
v0.0.0-...-a602de9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(db *db.Client, clientID, clientSecret, redirectURL string) *Client

func (*Client) Finish

func (c *Client) Finish(ctx context.Context, code string) error

func (*Client) GetClientID

func (c *Client) GetClientID() string

func (*Client) GetOauth

func (c *Client) GetOauth() *oauth2.Config

func (*Client) GetToken

func (c *Client) GetToken(ctx context.Context) (*oauth2.Token, error)

func (*Client) GetURL

func (c *Client) GetURL() string

func (*Client) GetUserInfo

func (c *Client) GetUserInfo(ctx context.Context) (*gauth.Userinfo, error)

Jump to

Keyboard shortcuts

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