How does Nuxt Auth work?

  • 0
    The bottom line is this, I can't understand how Nuxt Auth throws a token into the context of the nuxtServerInit hook into an application with SSR enabled? In fact, this hook is called to the server when the nuxt application is initialized before giving it to the user, but somehow Nuxt Auth first receives the token from the cookies, then throws it into the context on the server ... How is this possible at all? I tried to look at the original ones, I did not understand anything ... It is the logic that is important, how does the token from the cookies get to the nuxt server?
    JavaScript Anonymous, Dec 24, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!