rabbitco
rabbitco

Reputation: 2850

Podio js: Revoke access and refresh tokens

Is it possible to revoke:

  1. Access tokens;
  2. Refresh tokens;

using the Podio-js library?

Upvotes: 1

Views: 89

Answers (2)

domokun
domokun

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

Hope you can find a solution here.

Upvotes: 0

Related Questions