Its my understanding that when using in-client auth, the user does not yet have an oauth token. My goal here is to call the authorize api to get the oauth token when loading the app immediately after in-client auth is completed and the app is installed.
I am getting the following error:
I can also see that the following request in the next screenshot is being made with the pasted payload below:
@Robert.Wallis Using js sdk 0.14 did resolve the error. However, now I am seeing this error page after initiating in-client auth and using the authorize api. I am not seeing any relevant logs/error messages.
Next step here btw: You’ll need to register an onAuthorized event listener (with the js sdk) which will receive the authorization code. The rest you do server side (eg swap code for auth token)
If none of the ideas above work, try watching the dev tools network panel during the whole process. Likely there is a call to marketplace that is failing. If you can grab that, feel free to post here
When I switched from zoomSdk.callZoomApi(‘authorize’
to zoomSdk.authorize()
I stopped seeing the generic error and I am now getting a response from authorize. The next issue I am having is I am getting the error message Error: Validation error, please check API parameters.
In the docs, it seems like startAuthorize is the same api with the old name. In the docs it says the parameters are optional but the error message makes it seem like this is not the case.
zoomSdk.callZoomApi("startAuthorize", {
"state": optional string, provided by developer
"codeChallenge": optional string, provided by developer
})
Hi @MaxM sorry for the delayed response. We’ve had to put this on the back burner to get to release but I will follow up when we can loop back to this. I believe we did but I will confirm when I look again.