Glad to hear youâve gone with Zoom Auth! Good decision.
Your Zoom App, tho, doesnât need to Auth with Zoom. Itâs a Zoom user! Youâll find the Zoom user id on the x-zoom-app-context header. You can also skip authentication for the Zoom App and go right to an âauthenticatedâ state using in-client oauth. This would give you an access token that you can use to pull user profile, etc.
We have disabled zoom.us domain for security reasons
Is there any way rather than using SDK like api calls with x-zoom-app-context
We are using @zoom/appssdk - npm but it does not support test under regular browser and it gives : sdk.es.js:325 Uncaught (in promise) Error: The Zoom Apps SDK is not supported by this browser error.
The question is there any way to work with sdk locally?
These are addressed elsewhere. For now, though, and in short
1). In-client Oauth is the way to get user info - they must accept scopes in-app before given to you . . .
2) The Zoom Apps SDK does not work in other browsers, but you may mock the methods used - simply create an object on window with methods (eg setVirtualBackground) that return promises resolving to the return value for the api/method as defined in the docs
authorize(logs {message: âSuccessâ}) and config methods are working as expected but onAuthorized or addEventListener(âonAuthorizedâ, callback) never fired.
zoomSdk.addEventListener("onAuthorized", (event) => {
const { code, state } = event;
console.log("3. onAuthorized event fired.", code, state);
console.log(
"3a. Here is the event passed to event listener callback, with code and state: ",
event
);
console.log(
"4. POST the code, state to backend to exchange server-side for a token. Refer to backend logs now . . ."
);
});