middleware

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(params AuthParams) gin.HandlerFunc

Auth wraps the request with auth middleware

func GetUserIDFromCtx

func GetUserIDFromCtx(ctx context.Context) *ent.User

Types

type AuthParams

type AuthParams struct {
	JWTKeyStore *utils.JWTKeyStore
	Database    *ent.Client
}

Jump to

Keyboard shortcuts

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