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

Add Logout Functionality #35

Merged
merged 3 commits into from
Jan 13, 2025
Merged

Add Logout Functionality #35

merged 3 commits into from
Jan 13, 2025

Conversation

ThomasCode92
Copy link
Owner

@ThomasCode92 ThomasCode92 commented Jan 13, 2025

This Pull Request introduces a React Context to manage the user's authentication state across the application. Leveraging React's Context API simplifies how authentication data is shared and accessed throughout the component tree, reducing the need for prop drilling and enhancing code maintainability. The Context ensures that a logout button is displayed when the user is authenticated, and vice versa.

@ThomasCode92 ThomasCode92 linked an issue Jan 13, 2025 that may be closed by this pull request
Copy link

Copy link

@ThomasCode92 ThomasCode92 merged commit 78bfdc6 into main Jan 13, 2025
6 checks passed
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.

Add Logout Functionality
1 participant