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?
"Thanks for the tutorial. Subscribed!!!! :)"
—Zenish Shrestha
"Thank you for putting in the effort to make these videos and share with all!"
—Ritika Singh
"just started following along on your journey, great start... keep up the good work"
—Alison Smith
"great video as ALWAYS :) thanks and keep going with that great project!"
—אלכסיי לוינזון