feat: Create testConnection graphQL query

This commit is contained in:
Faruk AYDIN
2021-10-18 18:05:04 +02:00
committed by Ali BARIN
parent f39b2c8011
commit 650416ce6b
5 changed files with 39 additions and 9 deletions

View File

@@ -38,4 +38,9 @@ export default class Twitter {
screenName: verifiedCredentials.screenName
}
}
async isStillVerified() {
const userData = await this.client.currentUser();
return userData.id ? true : false
}
}