TeamCode Hub
A collaborative platform for developers to share code, manage projects, and work together seamlessly. Built with MERN stack and integrated with GitHub OAuth for secure authentication.
// GitHub OAuth Integration
const githubAuth = async (req, res) => {
const { code } = req.query;
const tokenResponse = await fetch(
'https://github.com/login/oauth/access_token', {
method: 'POST',
headers: { 'Accept': 'application/json' },
body: JSON.stringify({ client_id, client_secret, code })
});
return tokenResponse.json();
};