auth

package
v0.0.0-...-ee83092 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthCallback

func AuthCallback(rts refreshtoken.Store, u *AuthUser, privKey string, domain string, jwtExpiration time.Duration) func(w http.ResponseWriter, r *http.Request)

func MustAuth

func MustAuth(handler http.Handler) http.Handler

Types

type AuthUser

type AuthUser struct {
	Email    string `json:"email,omitempty"`
	Name     string `json:"name,omitempty"`
	LastName string `json:"lastname,omitempty"`
}

Jump to

Keyboard shortcuts

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