v6.2.0
v6.2.0 - Cookie Rotation Support
RoZod now automatically handles Roblox's new .ROBLOSECURITY cookie rotation system (see DevForum Post).
New Features
- Automatic cookie rotation detection - RoZod detects when Roblox rotates your cookie via Set-Cookie headers and updates the internal pool automatically
onCookieRefreshcallback - Get notified when cookies rotate so you can persist new values to your database or environmentrefreshCookie()- Proactively refresh a cookie session before it expiresgetCookies()/updateCookie()- Utility functions for manual cookie management
Example
configureServer({
cookies: process.env.ROBLOX_COOKIE,
onCookieRefresh: async ({ newCookie, poolIndex }) => {
await db.updateCookie(poolIndex, newCookie);
}
});See the README for full documentation.