auth

package
v0.0.0-...-4491578 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitJWT

func InitJWT(secretKey string)

func LoginHandler

func LoginHandler() http.Handler

LoginHandler reads a TODO

func UserAuthenticatingHandler

func UserAuthenticatingHandler(next http.Handler) http.Handler

UserAuthenticatingHandler is a handler wrapper that TODO

Types

type CtxKey

type CtxKey string
const UserCtxKey CtxKey = "user"

type UserClaims

type UserClaims struct {
	jwt.RegisteredClaims
	Name  string `json:"name"`
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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