2019-01-06 00:50:05 +00:00
|
|
|
import { revokeToken } from '../../utils/auth';
|
|
|
|
import withToken from './withToken';
|
2017-11-11 20:18:13 +00:00
|
|
|
|
2019-01-06 00:50:05 +00:00
|
|
|
export default function withRevokedToken(scopes, done) {
|
2017-11-11 20:18:13 +00:00
|
|
|
withToken(scopes, token => {
|
2019-01-06 00:50:05 +00:00
|
|
|
revokeToken(token).then(() => {
|
2018-09-01 13:37:48 +00:00
|
|
|
done(token);
|
2018-02-18 02:00:56 +00:00
|
|
|
});
|
|
|
|
});
|
2017-11-11 20:18:13 +00:00
|
|
|
}
|