Spaces:
Running
Running
axeronis commited on
Commit ·
b944d36
1
Parent(s): 372bfd3
fix: use backend callback URL for OAuth redirect
Browse files- backend/app/api/oauth.py +2 -3
backend/app/api/oauth.py
CHANGED
|
@@ -26,9 +26,8 @@ router = APIRouter(prefix="/oauth", tags=["OAuth"])
|
|
| 26 |
# TODO: Set these in environment variables
|
| 27 |
META_APP_ID = settings.META_APP_ID if hasattr(settings, 'META_APP_ID') else None
|
| 28 |
META_APP_SECRET = settings.META_APP_SECRET if hasattr(settings, 'META_APP_SECRET') else None
|
| 29 |
-
#
|
| 30 |
-
|
| 31 |
-
META_REDIRECT_URI = f"{_frontend_url}/channels" # Redirect back to channels page
|
| 32 |
|
| 33 |
|
| 34 |
# ==================== SCHEMAS ====================
|
|
|
|
| 26 |
# TODO: Set these in environment variables
|
| 27 |
META_APP_ID = settings.META_APP_ID if hasattr(settings, 'META_APP_ID') else None
|
| 28 |
META_APP_SECRET = settings.META_APP_SECRET if hasattr(settings, 'META_APP_SECRET') else None
|
| 29 |
+
# Redirect to backend callback handler
|
| 30 |
+
META_REDIRECT_URI = "https://api.microfunnel.online/api/v1/oauth/meta/callback"
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
# ==================== SCHEMAS ====================
|