fix: stop checking auth urls

This commit is contained in:
Ali BARIN
2023-06-02 10:54:24 +00:00
parent 1ac423ba56
commit ae316f60e4

View File

@@ -1,8 +1,6 @@
import Context from '../../types/express/context';
import axios from 'axios';
import globalVariable from '../../helpers/global-variable';
import App from '../../models/app';
import GenerateAuthUrlError from '../../errors/generate-auth-url';
type Params = {
input: {
@@ -31,12 +29,7 @@ const generateAuthUrl = async (
const app = await App.findOneByKey(connection.key);
const $ = await globalVariable({ connection, app });
try {
await authInstance.generateAuthUrl($);
await axios.get(connection.formattedData.url as string);
} catch (error) {
throw new GenerateAuthUrlError(error);
}
await authInstance.generateAuthUrl($);
return connection.formattedData;
};