auth

package
v0.0.0-...-059733a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthSessionCookieName     = "auth-session"
	AuthSessionProfileKey     = "profile"
	AuthSessionAccessTokenKey = "access_token"
)

Variables

This section is empty.

Functions

func IsAuthenticated

func IsAuthenticated(next echo.HandlerFunc) echo.HandlerFunc

Types

type User

type User struct {
	ID             string
	FirstName      string
	LastName       string
	ProfilePicture string
}

func NewUserFromProfile

func NewUserFromProfile(profile map[string]interface{}) *User

Jump to

Keyboard shortcuts

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