Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GitHub Authentication necessary changes (Server has the OAuth flow using passport.js) #12

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

foyzulkarim
Copy link
Owner

@foyzulkarim foyzulkarim commented Apr 28, 2024

Description:

This pull request is the client side change for the server implementation from CommitStreams Server:
Implement GitHub Authentication using Passport.js

The changes are primarily focused on managing authentication states, handling login/logout flow, and setting up the necessary routes.

Changes:

  1. AuthContext.js: This file has been updated to handle the authentication states and user profile information. It uses the React Context API to provide a global state for authentication, which can be accessed across the application.

  2. Login/Logout Flow: The login and logout flow has been implemented. On successful GitHub authentication, the user will be redirected to the dashboard/home page. On logout, the user will be redirected back to the login page.

  3. Routes: Routes have been set up for the login and logout process. The /auth/github route initiates the GitHub authentication process, while the /auth/github/callback route handles the callback from GitHub after user authentication.

@foyzulkarim foyzulkarim changed the title GitHub auth (this changes are related with the client app) Implement GitHub Authentication necessary changes (Server has the OAuth flow using passport.js) Apr 28, 2024
@foyzulkarim foyzulkarim marked this pull request as ready for review April 28, 2024 13:14
@foyzulkarim foyzulkarim merged commit 724adbb into main Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant