Hi Community,
I need to get the variables of a DS with Code Connect. I have cloned the sds repository (https://github.com/figma/sds) and updated the FIGMA_ACCESS_TOKEN and FIGMA_FILE_KEY variables in the .env file so that they point to my figa design project in the organization I am part of. But when I run the script to process variables I get some "invalid scopes" errors.
For example: Invalid scope(s): file_code_connect:read, file_code_connect:write and so on...
The scopes mentioned do not appear on y Figma settings when I create the personal access token (please see image attached). So I am stuck, I don't understand where I should configure the permissions for those scopes, as they do not appear to me.
What am I missing? My goal is getting the library of variables on my vs code with Figma Connect, for which I understand a Organization plan is required, which I am a member of.
There is a forum ticket I have open today, which is a little more detailed:
https://forum.figma.com/ask-the-community-7/having-trouble-getting-my-ds-variables-with-code-connect-39260
Any help will be much appreciated.