googleLoginAuth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserAuthenticated

func IsUserAuthenticated(r *http.Request) bool

func SetupAuthConfig

func SetupAuthConfig(sessionKey string, url string, clientID string, clientSecret string)

func SetupCallbacks

func SetupCallbacks(mux *http.ServeMux)

Types

type User

type User struct {
	VerifiedEmail bool   `json:"verified_email"`
	Name          string `json:"name"`
	Email         string `json:"email"`
	Picture       string `json:"picture"`
}

func GetUserDataFromSession

func GetUserDataFromSession(r *http.Request) (User, error)

Jump to

Keyboard shortcuts

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