oauth

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOAuthOptions

func GetOAuthOptions(url string) map[string]string

func InitializeOAuth

func InitializeOAuth()

Types

type Site

type Site string
const (
	SiteGithub   Site = "github"
	SiteGoogle   Site = "google"
	SiteFacebook Site = "facebook"
)

type UserData

type UserData struct {
	Email    string
	Username string
	Avatar   string
	Site     Site
	ID       string
}

func FacebookCallback

func FacebookCallback(code string, state string) (*UserData, error)

func GithubCallback

func GithubCallback(code string, state string) (*UserData, error)

func GoogleCallback

func GoogleCallback(code string, state string) (*UserData, error)

Jump to

Keyboard shortcuts

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