auth

package
v0.0.0-...-b264059 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(c *config.Config)

Setup sets up authentication

Types

type User

type User struct {
	Name      string `json:"name"`
	AvatarURL string `json:"avatar_url"`
	LogoutURL string `json:"logout_url"`
}

User is an authenticated user

func UserInfo

func UserInfo(name, email string) (user User)

UserInfo returns a User given a name and email

Jump to

Keyboard shortcuts

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