refactor: clean up github and rewrite its auth
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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',
|
||||
};
|
||||
|
Reference in New Issue
Block a user