Skip to content

Move Session route for Nuxt Auth Utils to /.nuxt-auth-utils/session to avoid polluting /api namespace #406

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

victorfds
Copy link

This PR addresses issue #389 by refactoring Nuxt Auth Utils to move the session endpoint from the /api namespace to /.nuxt-auth-utils/session. This change prevents pollution of the /api namespace, improving the project's routing structure and avoiding potential conflicts with user-defined API routes.

Changes

  • Updated session route to use /.nuxt-auth-utils/session instead of /api.
  • Ensured backward compatibility where applicable.
  • All existing tests are passing, confirming the refactor does not introduce regressions.
  • No additional dependencies were added.

Testing

  • Ran all unit and integration tests locally, and they are passing.
  • Manually tested the new session endpoint to ensure functionality remains intact.
  • Verified that the /api namespace is no longer used by Nuxt Auth Utils.

Additional Notes

  • Please let me know if additional test cases or documentation updates are needed.

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