Help us shape the future of Go! Take the 2026 Go Developer Survey

middleware

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthInterceptor

func AuthInterceptor(validator *auth.Validator) grpc.UnaryServerInterceptor

AuthInterceptor creates a new unary interceptor for JWT authentication.

func ClaimsFromContext

func ClaimsFromContext(ctx context.Context) (map[string]interface{}, bool)

ClaimsFromContext retrieves the JWT claims from the context.

func WithAuth

func WithAuth(ctx context.Context, config auth.Config) (grpc.UnaryServerInterceptor, error)

WithAuth creates a new unary interceptor for JWT authentication.

Types

This section is empty.

Jump to

Keyboard shortcuts

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