figmanage 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -287,13 +287,12 @@ export async function resolveAccountInfo(account) {
287
287
  'X-CSRF-Bypass': 'yes',
288
288
  'X-Figma-User-Id': account.userId,
289
289
  };
290
- const res = await axios.get('https://www.figma.com/api/user/state', {
290
+ const res = await axios.get(`https://www.figma.com/api/user/${account.userId}`, {
291
291
  headers,
292
292
  timeout: 5000,
293
293
  });
294
294
  const meta = res.data?.meta || {};
295
- const email = meta.email || meta.user?.email;
296
- return { profileName, figmaEmail: email };
295
+ return { profileName, figmaEmail: meta.email };
297
296
  }
298
297
  catch {
299
298
  return { profileName };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "figmanage",
3
3
  "mcpName": "io.github.dannykeane/figmanage",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "description": "MCP server for managing your Figma workspace from the terminal.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",