I am using nuxt with cloude firebase. Im using nuxtServerInit function to get auth user from cookies. Function works fine on localhost but is not executed on production
In store/index.js
`export const actions = {
async nuxtServerInit({ commit }, { req }) {
const user = getUserFromCookie(req)
if (user) {
await commit('users/setCurrentUser', {
uid: user.user_id,
email: user.email,
displayName: user.name,
});
}
}
}`
Please Help
This issue as been imported as question since it does not respect nuxt.js issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/nuxt.js/issues/c9723.
I'm having the same problem. Are you able to resolve this one @mavinemvento?
Most helpful comment
I'm having the same problem. Are you able to resolve this one @mavinemvento?