-
Notifications
You must be signed in to change notification settings - Fork 26
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
Customizable Login URL #54
Comments
I think instead of forcing the directory structure to be |
That's a good idea. This would only apply if nuxt-i18n is installed, no if vue-i18n is used (there could me multiple reasons for that), so I would also provide an array option with route rules that all redirect to your custom login page, so if wanted, the logic can be handled there individually. That would also handle some use cases outside or i18n. |
Or maybe a |
A custom login route is in the backlog, detecting i18n is probably not going to happen soon, as the users can implement their own login in a custom login site to handle multiple languages. |
Weird, I've done dozen of Nuxt 2 project and we've always translated the routes. To each their own 🤷♂️ I guess I prefer how I don't like that the global middleware infer the pages from the file-system routing (which force the route URL). |
There are definitely different requirements in terms of i18n, I probably just had a lot of projects without translated routes :) |
@itpropro Yeah, I'll probably look into porting the middleware from |
The login urls are currently fixed to /auth/login or /auth/PROVIDER/login.
It can help with i18n or other cases to have them customizable.
Follow up of #53
The text was updated successfully, but these errors were encountered: