Most of the application I'm building has the same default feature including, authentification, profile management, avatar upload, subscription...
What I've done:
I've decided to create a single package with the exported features and importing the package on my projects.
I'm importing my package as a plugin in nuxt.config
I'm registering my stores with the store.registerModule('<NAME>', VAR)
Question:
My stores are registered after the auth.initialize action so I can't export my onAuthStateChanged action in my package. Is there a way to fire the auth action after the registering of my stores?
Context:
What I've done:
store.registerModule('<NAME>', VAR)
Question: My stores are registered after the auth.initialize action so I can't export my onAuthStateChanged action in my package. Is there a way to fire the auth action after the registering of my stores?
Thanks