Skip to content

v6.2.0

Choose a tag to compare

@alexop1000 alexop1000 released this 04 Feb 09:54
· 38 commits to master since this release

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
  • onCookieRefresh callback - Get notified when cookies rotate so you can persist new values to your database or environment
  • refreshCookie() - Proactively refresh a cookie session before it expires
  • getCookies() / 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.