figma-to-flutter
figma-to-flutter copied to clipboard
How to find authentication token and file_key
what should be entered in file_key?
Hi ! As stated in the Figma API documentation :
- Login to your Figma account.
- Head to the Account Settings from the top-left menu inside Figma.
- Find the Personal Access Tokens section.
- Click Create new token.
- A token will be generated. This will be your only chance to copy the token, so make sure you keep a copy of this in a secure place.
Hi, I got the token but how do I get the file_key? The documentation to get the file_key is poor.
You still can not use because on the page only generates the token and still do not understand what is the file_key
"To get your file key, simply extract it from url."
If you get the web link to your figma file, it should look something like: https://www.figma.com/file/XXXXXXXXXXXXX/Sample-File
Where those XXXXX's are, is the file key :)
I have authentication token and file key.
I entered into the fields and click on the button.
Nothing happens
I have authentication token and file key. I entered into the fields and click on the button. Nothing happens
Look the console for check the error.
I am seeing a CORS error:
Access to XMLHttpRequest at 'https://api.figma.com/v1/files/xxxxxxxxxxxxxxxxxx?geometry=paths'
from origin 'https://aloisdeniel.github.io' has been blocked by
CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Any idea how to fix this?