JWTTool Module

JWTTool Module

Bioblaze Payne
–

Introducing the JWTTool Module: built-in JSON Web Token creation, parsing, validation, and diagnostics for Blazium Game Engine.

Introducing the JWTTool Module

Blazium Game Engine now includes a built-in JWTTool module for working with JSON Web Tokens directly from your projects. Whether you are authenticating players, validating backend-issued session tokens, signing local service messages, or building secure tools, JWTTool brings token creation, parsing, and verification into the engine without relying on external addons.

The module exposes the JWT singleton for common operations, JWTBuilder for fluent token creation, and DecodedJWT for inspecting parsed tokens and reading typed claims. It supports HMAC-based HS256 tokens, RSA-based RS256 tokens through Blazium's CryptoKey support, registered claim helpers, timing checks, key selection, revocation, and diagnostic results for better tooling and logs.

Key Features

Why Add JWTTool to a Game or Application?

JWTs are a common bridge between games, web services, launchers, account systems, dashboards, and internal tooling. With JWTTool built into Blazium, projects can validate tokens close to the gameplay or application logic that depends on them. That makes it easier to gate features, read session metadata, and verify signed messages without writing a custom token stack.

For Games

For Applications & Tools

Because the module works with Blazium's existing Crypto APIs, it fits naturally alongside other engine networking and backend-facing features. Applications can keep remote JWKS fetching, account policy, or secret storage in their own service layer while JWTTool handles the token mechanics inside the engine.

Documentation & Next Steps

The module is already available in the latest nightly of Blazium and includes a dedicated test project (see jwttool_module_tests for examples).

From small internal tools to online games with account-backed services, the JWTTool module gives Blazium projects a practical native foundation for token-based authentication and signed claims.


Jump into our Discord for real-time chats, dev support and feedback

Or follow us everywhere else: