Skip to content

Instantly share code, notes, and snippets.

View follow-prince's full-sized avatar
🎓
studying

ELAVARASAN follow-prince

🎓
studying
View GitHub Profile
@follow-prince
follow-prince / App.jsx
Created August 6, 2024 11:25
In this blog post, we'll walk through the process of integrating LinkedIn OAuth authentication in a React frontend with an Express.js backend. This guide will cover setting up the backend to handle LinkedIn's OAuth flow, creating a simple React frontend for user interaction, and handling the authentication callback to fetch user information.
// Next, we'll create a React frontend that handles user interaction, initiates the LinkedIn login process, and displays the user's profile information.
### Frontend Setup:
import React, { useState } from 'react';
import axios from 'axios';
const clientId = 'YOUR_LINKEDIN_CLIENT_ID';
const redirectUri = 'http://localhost:3000/linkedin/callback';