-
Hello, I might just not have found it yet. But im looking at the provided oauth client in masto.js and cannot find a way to call /oauth/revoke (https://docs.joinmastodon.org/methods/oauth/#revoke). What do I miss? How to revoke a token with masto.js? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @42gb, thank you for posting a question. As you pointed out, we didn't support I've just released v6.5.0 with token revocation support #1011, and you can use it as follows: import { createOAuthClient } from "masto";
const oauth = createOAuthClient({ ... });
await oauth.revoke({
clientId: "...",
clientSecret: "...",
token: "...",
}) |
Beta Was this translation helpful? Give feedback.
Hi @42gb, thank you for posting a question.
As you pointed out, we didn't support
POST /oauth/revoke
API becuase Masto.js has long been dedicated for the REST and WebSocket API and has just introduced OAuth API support as of v6.0.0.I've just released v6.5.0 with token revocation support #1011, and you can use it as follows: