mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 05:51:08 -05:00
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:
4
.replit
4
.replit
@@ -39,6 +39,10 @@ externalPort = 80
|
||||
localPort = 34277
|
||||
externalPort = 3000
|
||||
|
||||
[[ports]]
|
||||
localPort = 36601
|
||||
externalPort = 3001
|
||||
|
||||
[deployment]
|
||||
deploymentTarget = "autoscale"
|
||||
run = ["gunicorn", "--bind=0.0.0.0:5000", "--reuse-port", "thrillwiki.wsgi:application"]
|
||||
|
||||
@@ -379,7 +379,7 @@ Alpine.data('authModal', (defaultMode = 'login') => ({
|
||||
|
||||
async fetchSocialProviders() {
|
||||
try {
|
||||
const response = await fetch('/api/v1/auth/social-providers/');
|
||||
const response = await fetch('/api/v1/auth/social/providers/');
|
||||
const data = await response.json();
|
||||
this.socialProviders = data.available_providers || [];
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user