Update the social login endpoint to ensure providers are fetched correctly

Fix an issue where the social providers endpoint path was incorrect, leading to JSON parsing errors when fetching data.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dcfff319-6e91-4220-98a9-8295b87755b7
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d6d61dac-164d-45dd-929f-7dcdfd771b64/dcfff319-6e91-4220-98a9-8295b87755b7/yNGZpGK
This commit is contained in:
pac7
2025-09-21 17:43:39 +00:00
committed by pacnpal
parent 2c3ae4d937
commit a043163596
2 changed files with 5 additions and 1 deletions

View File

@@ -39,6 +39,10 @@ externalPort = 80
localPort = 34277 localPort = 34277
externalPort = 3000 externalPort = 3000
[[ports]]
localPort = 36601
externalPort = 3001
[deployment] [deployment]
deploymentTarget = "autoscale" deploymentTarget = "autoscale"
run = ["gunicorn", "--bind=0.0.0.0:5000", "--reuse-port", "thrillwiki.wsgi:application"] run = ["gunicorn", "--bind=0.0.0.0:5000", "--reuse-port", "thrillwiki.wsgi:application"]

View File

@@ -379,7 +379,7 @@ Alpine.data('authModal', (defaultMode = 'login') => ({
async fetchSocialProviders() { async fetchSocialProviders() {
try { try {
const response = await fetch('/api/v1/auth/social-providers/'); const response = await fetch('/api/v1/auth/social/providers/');
const data = await response.json(); const data = await response.json();
this.socialProviders = data.available_providers || []; this.socialProviders = data.available_providers || [];
} catch (error) { } catch (error) {