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

@@ -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) {