Skip to content

Refactor authentication middleware to centralize session verification - #348

Merged
Stivenjs merged 2 commits into
mainfrom
cli
Oct 11, 2025
Merged

Stivenjs merged 2 commits into
mainfrom
cli

Conversation

@Stivenjs

Copy link
Copy Markdown
Contributor

Removed the handleAccountSettings middleware and integrated centralized authentication checks using handleAuthenticationMiddleware across various ownership and store access middleware. This change streamlines session validation and improves code maintainability by reducing redundancy in authentication logic.

Removed the handleAccountSettings middleware and integrated centralized authentication checks using handleAuthenticationMiddleware across various ownership and store access middleware. This change streamlines session validation and improves code maintainability by reducing redundancy in authentication logic.
@Stivenjs Stivenjs self-assigned this Oct 11, 2025
@Stivenjs Stivenjs added enhancement New feature or request question Further information is requested javascript Pull requests that update javascript code labels Oct 11, 2025
…re middleware

Refactor tests in middleware.test.ts to remove references to handleAuthenticationMiddlewareNoRefresh and replace them with handleStoreMiddleware. Adjust test cases to validate the correct execution of store middleware when handling requests to the '/my-store' path, ensuring proper integration of authentication logic within the store access context.
@Stivenjs
Stivenjs merged commit fa223b9 into main Oct 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update javascript code question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant