name description param fileId { string } const getAccessToken = async ( fileId ) : Promise < string > => { const accessTokens = await figma . clientStorage . getAsync ( 'accessTokens' ) ; if ( accessTokens !== undefined && accessTokens instanceof Object ) { const accessToken = accessTokens [ fileId ] ; return accessToken || '' ; } return '' ; } ; name description param fileId { string } param fileId { string } const setAccessToken = async ( fileId , accessToken ) => { const accessTokens = ( await figma . clientStorage . getAsync ( 'accessTokens' ) ) || { } ; const mergedTokens = { ... accessTokens , ... { [ fileId ] : accessToken } } ; return await figma . clientStorage . setAsync ( 'accessTokens' , mergedTokens ) ; } ; export { getAccessToken , setAccessToken } ;