Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Figma filekey checking is not available due to api limitation #121

Open
softmarshmallow opened this issue Aug 4, 2021 · 0 comments

Comments

@softmarshmallow
Copy link
Member

Figma file checksum

Why do we need this?

There are two ways to access figma files.

  1. via plugin api (assistant)
  2. via http rest api (on other backend services)

Grida uses both way to retreive, manage figma design.
Since figma plugin api does not provide filekey(file id) for public plugins, we have to explicitly get input from user indicating the figma file id (which is both included in share link & node link.). after we do this, we have to save this file id on localstorage (pluginstorage) for later use cases. after user authenticates rather using assistant or other grida service, we'll ask user to authenticate figma oauth (so we can access it via http api), after we do this, we can now use saved file id as checksum and if the id can be trusted.

Id is essential to keep track of design's version and changes.

There is a open issue related to this issue. - here (figma/plugin-typings#13)

References


ORIGINAL

https://github.com/gridaco/assistant/tree/feature/register-scene/figma/src/platform-features/file-checksum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant