Merge pull request #47 from R0m1k3/claude/integrate-google-calendar-api-011CV44Nie9HB7U35ArSUnNa

Fix: Route auth-url accessible à tous les utilisateurs authentifiés
This commit is contained in:
LogiFlow authored and GitHub committed 2025-11-12 15:22:36 +01:00
commit dee0848245
1 file changed
+1 -1
+1 -1
View File
@@ -130,7 +130,7 @@ router.get('/force-oauth2', async (req, res) => {
* GET /api/calendar/auth-url
* Générer l'URL d'authentification OAuth
*/
router.get('/auth-url', requireAdmin, async (req, res) => {
router.get('/auth-url', authenticateToken, async (req, res) => {
try {
// Permettre de passer une URL de redirection personnalisée via query param
const customRedirectUri = req.query.redirect_uri;