mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-16 11:48:19 +02:00
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:
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user