Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitiateModule ¶
Initializes the JWT module with the provided jwtScopes. Takes multiple jwtScopes and loads configuration for each. Tokens can be generated for each scope.
For example: - jwt.GenerateToken("auth", jwt.MapClaims{"user_id": 123}) - jwt.GenerateToken("email", jwt.MapClaims{"email": "[email protected]"})
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) GenerateToken ¶
Generates a JWT token with the provided additional claims for a specific scope. Use jwt.MapClaims from "github.com/golang-jwt/jwt/v5"
func (*Module) ParseToken ¶
parse JWT token for a specific scope
func (*Module) PrintDebugLogs ¶
func (m *Module) PrintDebugLogs()
Prints debug logs for all configurations.
Click to show internal directories.
Click to hide internal directories.