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 support for custom session endpoint in nuxt-auth-utils #303

Open
ClaudiaPascualGea opened this issue Dec 12, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@ClaudiaPascualGea
Copy link

Hi,
I have a use case where I need to change the default endpoint used to fetch the session (/api/_auth/session) to a custom one (e.g., /custom-api/_auth/session). However, it seems that the module currently does not allow for this customization.

Being able to configure the session endpoint would make the module more flexible and adaptable for different backends or API setups.

Would it be possible to add support for specifying a custom session endpoint via module options?

Thank you in advance for considering this request. Let me know if you need more details or if I can assist with testing or implementation.

Best regards,
Claudia

@atinux
Copy link
Owner

atinux commented Dec 13, 2024

Hi @ClaudiaPascualGea

I try to avoid as much as possible to add option as it can lead to more complex code and undesired side effects.

What is the main issue of not being able to rename it? Do you have a proxy setup on /api?

@atinux atinux added the question Further information is requested label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants