middleware

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForContext

func ForContext(ctx context.Context) *pkg.BaseUserInfo

ForContext finds the user from the context. REQUIRES Middleware to have run.

func NewAuthMiddleware

func NewAuthMiddleware(db part.IDataBase, jwt part.IJwtService, next http.Handler) http.Handler

Middleware decodes the share session cookie and packs the session into context

Types

This section is empty.

Jump to

Keyboard shortcuts

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