jwtutil

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRole

func HasRole(ctx *gin.Context, role string) bool

HasRole checks if the user has the specified role in their JWT token.

func HasRoleWithDeps added in v1.12.0

func HasRoleWithDeps(ctx *gin.Context, cfg config.File, logger *slog.Logger, role string) bool

HasRoleWithDeps checks if the user has the specified role in their JWT token using provided dependencies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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