Skip to content

bol507/oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login OAuth with GitHub

Basic implementation of using the login with GitHub

Tech Stack

Client: React, TailwindCSS

Server: Node, Express

API Reference

Post redirect

  POST /oauth/redirect
Parameter Type Description
code string Required. github code

Get user

  GET /api/user
Parameter Type Description
token string Required. header token github

Environment Variables

To run this project, you will need to add the following environment variables to your .env file in backend

PORT CLIENT_ID CLIENT_SECRET GITHUB_URL FRONTEND_URL

Authors

License

MIT