Skip to content

API Reference ​

CyberGo JWT provides a complete JWT token lifecycle management API.

Module Structure ​

ModuleDescriptionDetails
Package FunctionsNew, DefaultConfig, NewRateLimiter and other factory functionsConstruction & Initialization
ProcessorToken creation, validation, refresh, and revocation core methodsCore Operations
ConfigConfig, BlacklistConfig configuration structuresConfiguration Management
ClaimsClaims, RegisteredClaims claim typesToken Claims
InterfacesTokenManager, CustomClaims, BlacklistStore, etc.Extension Interfaces
Types & ConstantsSigning method constants, NumericDate, StringOrSlice, etc.Auxiliary Types
Errors20 sentinel errors, ValidationErrorError Handling

Quick Lookup ​

By Use Case ​

Use CaseRelated API
Create Processorjwt.New(), jwt.DefaultConfig()
Issue tokenProcessor.Create(), Processor.CreateRefresh()
Validate tokenProcessor.Parse(), Processor.ParseInto()
Refresh tokenProcessor.Refresh(), Processor.RefreshInto()
Revoke tokenProcessor.Revoke(), Processor.IsRevoked()
Configure signing algorithmConfig.SigningMethod
Custom ClaimsCustomClaims interface
Blacklist managementBlacklistStore interface
Rate limitingRateLimitProvider interface
Error handlingSentinel Errors