feat: write REST API endpoint to generate auth url

This commit is contained in:
Ali BARIN
2024-09-12 13:57:25 +03:00
committed by Faruk AYDIN
parent 2cfd6739ca
commit ace1f84094
6 changed files with 128 additions and 1 deletions
+11
View File
@@ -238,6 +238,17 @@ class Connection extends Base {
return app.auth.verifyWebhook($);
}
async generateAuthUrl() {
const app = await App.findOneByKey(this.key);
const $ = await globalVariable({ connection: this, app });
await app.auth.generateAuthUrl($);
const url = this.formattedData.url;
return { url };
}
}
export default Connection;