nuxt-auth-utils
nuxt-auth-utils copied to clipboard
Add support for custom session endpoint in nuxt-auth-utils
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
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?
Duplicate of #389 ?