refactor: clean up github and rewrite its auth

This commit is contained in:
Ali BARIN
2022-10-16 19:49:45 +02:00
parent a69cd51dda
commit 314787f39c
37 changed files with 398 additions and 1756 deletions

View File

@@ -3,8 +3,8 @@ import getCurrentUser from '../common/get-current-user';
const isStillVerified = async ($: IGlobalVariable) => {
try {
await getCurrentUser($);
return true;
const user = await getCurrentUser($);
return !!user;
} catch (error) {
return false;
}

View File

@@ -4,5 +4,6 @@ export default {
iconUrl: '{BASE_URL}/apps/twitter/assets/favicon.svg',
authDocUrl: 'https://automatisch.io/docs/connections/twitter',
supportsConnections: true,
baseUrl: 'https://api.twitter.com',
baseUrl: 'https://twitter.com',
apiBaseUrl: 'https://api.twitter.com',
};