Basic implementation of using the login with GitHub
Client: React, TailwindCSS
Server: Node, Express
POST /oauth/redirect
Parameter | Type | Description |
---|---|---|
code |
string |
Required. github code |
GET /api/user
Parameter | Type | Description |
---|---|---|
token |
string |
Required. header token github |
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