You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm following a tutorial in which a stand alone app is sending oauth request to WordPress, already OAuth2 server plugin installed and its give me Invalid or missing response type
Here is the JSO config:
var ROOTURL = "http://wp-rest.oo";
const RESTROOT = ROOTURL + '/wp-json';
var jso = new jso.JSO({
providerID: "WP Editor",
client_id: "PJmIzB9SGeLnseknJDzgXwKUWd9XujA2zocyCMwM",
redirect_uri: "http://wpedit-oauth.oo/",
authorization: ROOTURL + "/oauth/authorize",
});
// Catching the response when the user is returning
jso.callback();
This is the calling function:
function oauthLogin() {
console.info('Login button pressed!');
let opts = {
redirect_uri: "http://wpedit-oauth.oo/"
}
jso.getToken(opts)
.then((token) => {
console.log("I got the token: ", token)
})
.catch((err) => {
console.error("Error from passive loader", err)
})
}
Client is already registered in WordPress. So what is the issue??
The text was updated successfully, but these errors were encountered:
I'm following a tutorial in which a stand alone app is sending oauth request to WordPress, already OAuth2 server plugin installed and its give me
Invalid or missing response type
Here is the JSO config:
This is the calling function:
Client is already registered in WordPress. So what is the issue??
The text was updated successfully, but these errors were encountered: