Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.

This commit is contained in:
Torsten Schulz (local)
2026-07-21 09:08:15 +02:00
parent c564d6decf
commit a7e0fe1d97
1381 changed files with 22278 additions and 485 deletions

3
backend/controllers/authController.js Normal file → Executable file
View File

@@ -63,7 +63,8 @@ class AuthController {
async oauthStart(req, res) {
const { provider } = req.params;
try {
const redirectTo = await oauthService.startOAuthLogin({ providerSlug: provider });
const client = req.query.client === 'android' ? 'android' : 'web';
const redirectTo = await oauthService.startOAuthLogin({ providerSlug: provider, client });
res.redirect(302, redirectTo.toString());
} catch (error) {
const status = error.message === 'providernotconfigured' ? 503 : 500;