I am facing a challenge while trying to integrate the nuxt@auth module and nuxt-i18n together. The issue arises when I need to have different routes for the login page based on language. For instance:
pages: {
login: {
en: '/authentication',
fr: '/autorisation'
}
}
The routes are functioning correctly, but I encounter a problem when using nuxt@auth with all pages restricted. The default redirect requests the /login page. In the nuxt.config.js file, I can modify the redirect route, but it only allows me to set one redirect.
auth: {
redirect: {
login: '/fr/autorisation'
}
}
Is there a way to instruct the auth module to request the route based on the selected language? Any help would be greatly appreciated!