0% done with Mirage with Nuxt
13:56
|
Published on
1/31/2020
|
|
MirageJS Endpoints for Nuxt Auth
In order to get Nuxt Auth to work with Mirage, we need to define three endpoints:
- POST sessions,
- POST users, and
- GET sessions/user.
The thing that sets these endpoints apart from others is how they interact with the auth token - we create it in one, read it from a header in another, and return it in the last.
What do others think of VueScreencasts?
"thank you man, great videos"
—BaWaR
"Very well explained."
—Leon van Rijswijk
"Awesome video!"
—Doïc de Maleprade
"great 👍"
—Paul Hacker