Intro to Mirage with Nuxt
2:03
Nuxt + Mirage - From Install to first API Endpoint
10:34
Mirage with Nuxt - a Warning about Universal Mode
1:53
Fixing Data Discrepancies between server and Mirage
5:56
Mirage Route Shorthands
1:49
Data Relationships in MirageJS
5:06
More Data Relationships in Mirage
9:33
Loading Data Once with Middleware - working with Mirage and SPA Mode
5:52
CRUD for Admin page -- normalizing data for Mirage Post and Put
11:32
MirageJS Endpoints for Nuxt Auth
13:56
Mirage Serializer's keyForAttribute
5:03
Mirage and the Mark Played button
2:22
Mocking S3 Uploads with Mirage
4:08
Removing Tags from Mirage
1:06
Mirage + Nuxt Conclusion (for now)
1:10
0% done with Mirage with Nuxt

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.

Github Code

What do others think of VueScreencasts?
"Wonderful! Super helpful. Thank you."
—Abdur Rahman
"Amazing!!!!! Need this so much!!!!!!"
—Nathan Yang
"Excellent! Top Vue tutorials I've found."
—Igor Špánik
Take your career to the next level