oauth

package
v0.0.0-...-1e37d63 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalOauth

type LocalOauth struct {
	Config *oauth2.Config
}

LocalOauth holds info about LocalOauth object.

func NewOauth

func NewOauth() *LocalOauth

NewOauth creates a new Oauth Object.

func (*LocalOauth) GetService

func (o *LocalOauth) GetService(code string) (*youtube.Service, error)

GetUserDataFromGoogle uses code to get token and get user info from Google.

func (*LocalOauth) Login

func (o *LocalOauth) Login(w http.ResponseWriter, r *http.Request)

Login logs in a user.

Jump to

Keyboard shortcuts

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