API Endpoints
The backend provides the following endpoints for managing OAuth authentication:Fetch Social Keys
-
Endpoint:
GET /env/public/social-keys - Description: Fetches stored OAuth credentials.
-
Response:
Update Social Keys
-
Endpoint:
PUT /env/social-keys - Description: Updates OAuth credentials in the database.
-
Request Body:
Google Authentication
-
Endpoint:
POST /auth/google - Description: Handles login via Google OAuth.
-
Request Body:
Facebook Authentication
- Endpoint:
POST /auth/facebook - Description: Handles login via Facebook OAuth.
- Request Body:
Managing OAuth Keys in Admin Panel
The Social Login Management section in the admin panel allows administrators to store and update OAuth credentials dynamically.Steps:
- Navigate to Admin Panel Settings → Social Login Management.
- Enter the Client ID, Client Secret, and Callback URL for each provider.
- Click Submit to save the credentials.
- If a provider is missing credentials, its login button will not be displayed on the user authentication page.

