@rizzmyrobot/mochi-server-auth
v0.0.2
Published
The current public package is `@rizzmyrobot/mochi-server-auth`. It is the game-server support package for signed wake events and server-side intent validation helpers.
Readme
Mochi Server Auth
The current public package is @rizzmyrobot/mochi-server-auth. It is the
game-server support package for signed wake events and server-side intent
validation helpers.
It does not authenticate players, run Mochi, select actions, call models, manage memory, or bypass a game's own validation. Game servers stay authoritative for canon, legal actions, hidden mechanics, and final receipts.
Included helpers:
- sign a game-owned wake request using Mochi's signed JSON contract
- verify signed wake requests with the existing contracts verifier
- validate that an intent targets a declared server-validated action affordance
- format a public-safe server receipt for accepted, rejected, or duplicate intent submissions
