How to Revoke Tokens from OAuth 2? – APIs


Hey guys, I have set up an API connection with Xero using the User-Agent Flow in the API Connector. The plugin works well, allowing signup with social network, retrieving data, and refreshing tokens. I am trying to have a button in my app that disconnects the connection with an API call. This is Xero’s documentation:

After tring to make the call I receive error 415 which means unsupported media type. Note: this is the first call I am making that is not a GET call (POST instead) Here are my API and call settings:

Any ideas on how to make this work? I also have no idea how to access the refresh token as bubble handles the refresh process automatically. Thanks in advance for the help!



Source link

Leave a Comment