TypeScript typings restored and authentication handling improved
Published: February 5, 2026
v5.8.1
Sanity Studio
This release restores proper TypeScript typings for sanity/structure, and improves authentication handling for studios configured with auth.loginMethod: 'token' or are embedded in dashboard.
๐ Notable bugfixes and improvements
- Fixes an issue causing the studio to freeze if using
parentNodeas field name. sanity@5.3.0had a regression wherestructureTool(),presentationTool(), and a few other APIs ended up withanyas their type, instead of the rich typescript typings that theyโre supposed to have. In this release the types are back ๐ฎโ๐จ- Studios configured with
auth.loginMethod: 'token'or embedded in Dashboard will now strictly enforce token based authentication and no longer silently fall back to cookie authentication when session cookies exist from other studios on the same domain. Similarly, studios withauth.loginMethod: 'cookie'will now ignore tokens in localStorage.