Hello, I am attempting to self manage oauth, I want to post a code state from client side to server side. The server action for this working great when I enter the code manually to test but I don’t understand how pass the code dynamically.
Do I need to use an api action and use query parameter of “code”?
It says load here, will this run the post?
And invoke the load run/ like this from javascript is okay?
function handleOpenURL(url) {
setTimeout(function () {
var queryString = url
var urlSet = new URL(queryString);
var urlState = urlSet.searchParams.get("state");
var urlCode = urlSet.searchParams.get("code");
if (urlState == 'xxxxx') {
dmx.parse("apiCodeExchange.load({code:'" + urlCode + "'})");
}
}, 0)
}
Community Page
Last updated:
Last updated: