Comments (1)
The access token is required to call the REST API from the client-side.
You could possibly wrap this in an Apex Controller method, but that would only maybe serve to "hide" the underlying implementation from the security review. At the end of the day, if Salesforce says you're not allowed to use client side API access in AppExchange packages, then you need to come up with some other way to communicate with Salesforce.
In that case your option are:
- Embed JSON data into the window scope using the Apex Controller method
- Use the AJAX Remote Callout instead of the rest API. How to make these calls with ts-force.
Also... I'm by no means an expert in AppExchange package development, but my understanding was that Salesforce wouldn't pass anything other than their "officially supported" framework (LWC)
from bad-ass-salesforce-stack.
Related Issues (20)
- Unable to Setup Demo Project in Dev Org
- Optimize Production build
- Upgrade to react-hot-loader 4.0
- add ability to build assets
- make renaming app easier HOT 1
- fix broken test HOT 1
- Use boiler-room-custodian
- add .vscode recommended extensions
- refactor webpack config base configuration to package so it's easier to upgrade HOT 1
- support windows
- refactor `src` -> `app`
- Look at using snowpack
- add CI
- API request don't work when VF page is displayed in lightning
- sfdx targets are global and thus are shared across project! HOT 1
- Webpack failure in version 5.52.0 HOT 1
- create script to rename app
- ts-force generation in documentation HOT 2
- Issue with latest antd package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bad-ass-salesforce-stack.