Reputation: 2850
Is it possible to revoke:
using the Podio-js library?
Upvotes: 1
Views: 89
Reputation: 3003
You can invalidate the current user access_token
using the Invalidate Tokens endpoint.
The access token can still be refreshed using the refresh_token
var PodioJS = require('podio-js');
PodioJS.request('POST', '/oauth/token/invalidate', {});
Using the Invalidate Grant endpoint instead invalidate both tokens, which means that the user is effectively logged out.
var PodioJS = require('podio-js');
PodioJS.request('POST', '/oauth/grant/invalidate', {});
Upvotes: 2
Reputation: 1520
Hope you can find a solution here.
Upvotes: 0