manifest.json
{
...
"api": "1.0.0",
"main": "dist/code.js",
"ui": "dist/ui.html",
"editorType": [
"figma"
],
"permissions": [
"currentuser"
],
"networkAccess": {
"allowedDomains": [...],
"devAllowedDomains": [...]
}
}
But error is thrown when calling figma.currentUser
"in get_currentUser: \"currentuser\" permission not specified in manifest.json. Add the following to your manifest.json: \"permissions\": [\"currentuser\"]. See https://www.figma.com/plugin-docs/manifest/#permissions for more details."
Figma typing version 1.78.0