Skip to content

feat(auth): switch auth handling from localStorage to cookies - #72

Merged
swarooppatilx merged 1 commit into
swarooppatilx:mainfrom
rafia-codes:feature/AuthCookies
Sep 7, 2025
Merged

swarooppatilx merged 1 commit into
swarooppatilx:mainfrom
rafia-codes:feature/AuthCookies

Conversation

@rafia-codes

Copy link
Copy Markdown
Contributor

This pull request refactors the authentication workflow by replacing localStorage with secure HTTP cookies to store JWT tokens. This change enhances security and improves the handling of authentication tokens across the application.

Changes made:

Introduced a new Redux-based authentication logic that seamlessly manages login and logout workflows with improved state management and security.

Ensured JWT tokens are stored and accessed securely via cookies, preventing potential XSS vulnerabilities.

Implemented robust token refresh and expiration handling within Redux to maintain user sessions smoothly.

Additional fixes:

Corrected a typo in the "Forgot Password" text.

Removed the duplicate /home route entry in App.jsx for cleaner routing.

@github-actions

github-actions Bot commented Sep 4, 2025

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@rafia-codes

Copy link
Copy Markdown
Contributor Author

Fixes #71

@rafia-codes rafia-codes changed the title refactor(auth): switch auth handling from localStorage to cookies feat(auth): switch auth handling from localStorage to cookies Sep 5, 2025

@swarooppatilx swarooppatilx left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@swarooppatilx swarooppatilx added gssoc25 GirlScript Summer of Code 2025 level3 GSSoC 2025 Level 3 labels Sep 7, 2025
@swarooppatilx
swarooppatilx merged commit 914e82d into swarooppatilx:main Sep 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc25 GirlScript Summer of Code 2025 level3 GSSoC 2025 Level 3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants