2018-09-01 06:37:48 -07:00

13 lines
273 B
JavaScript

const withToken = require("./withToken");
const AuthAPI = require("../../AuthAPI");
function withRevokedToken(scopes, done) {
withToken(scopes, token => {
AuthAPI.revokeToken(token).then(() => {
done(token);
});
});
}
module.exports = withRevokedToken;