package
1.4.1
Repository: https://github.com/tfkhdyt/fiber-toolbox.git
Documentation: pkg.go.dev

# Functions

GenerateJWT generates a JWT token with specified claims and type (Access or Refresh).
JwtMiddleware returns a JWT middleware function for Fiber that validates incoming requests' JWT tokens.
ParsePayload parses a JWT token string and validates its claims using the provided JWT key.
ParsePayloadFromHeaders extracts JWT claims from the request context and validates them.

# Constants

Access token type.
Refresh token type.

# Interfaces

StructClaims is an interface that extends jwt.Claims with a method to set the expiration time.

# Type aliases

JwtType defines the type of JWT, either Access or Refresh.