helper

package
v0.0.0-...-d52ec89 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTHelper

type JWTHelper struct {
	UserRoleRepository repository.UserRoleRepository
}

func (*JWTHelper) ExtractClaims

func (_ *JWTHelper) ExtractClaims(tokenStr string) (jwt.MapClaims, bool)

func (*JWTHelper) ExtractClaimsFromContext

func (jh *JWTHelper) ExtractClaimsFromContext(ctx *fiber.Ctx) (jwt.MapClaims, bool)

func (*JWTHelper) IsAdmin

func (jh *JWTHelper) IsAdmin(claims jwt.MapClaims) bool

func (*JWTHelper) IsCustomer

func (jh *JWTHelper) IsCustomer(claims jwt.MapClaims) bool

Jump to

Keyboard shortcuts

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