File Details
[3.0.0] CRNet
- B
- Apr 24, 2026
- 598.75 KB
- 104
- 1.21.1
- NeoForge
File Name
crnet-3.0.0.jar
Supported Versions
- 1.21.1
Curse Maven Snippet
Version 3.0.0
Added
- Self-signed JWT tokens now carry per-player
uuidandnameclaims when issued for a specific player, letting the backend identify the acting player from the token alone without a separate lookup. - JWT tokens now support an optional audience claim (
aud), allowing the backend to distinguish mod-issued tokens from other token types. - An optional UUID-to-name resolver can be passed to
AuthStrategy.selfSignedJwt(...)to embed the player's display name in the token.
Breaking
- Removed the login-endpoint authentication path (
AuthStrategy.loginEndpoint(String),LoginEndpointAuthConfig, andLoginEndpointStrategy). Mods that used the login endpoint must migrate toAuthStrategy.selfSignedJwt(secret, ttl, "createrington.mod", nameResolver)and configure a shared JWT secret in their mod config. - Removed the
AuthConfigsealed interface.CRNetClient.Builder.auth(...)now acceptsAuthStrategydirectly instead of the formerAuthConfigsupertype.