Nuxt Auth: Why does loginWith call both ‘login' and ‘user' API endpoints? (Source dive)

Published: 18 February 2020
on channel: Jeffrey Codes
9,261
92

One of the most common questions I've gotten on my Nuxt Auth video (   • Nuxt Auth - Authentication and Author...  ) is about why the loginWith method calls both the 'login' and 'user' API endpoints.

To answer this question, we're going to be doing a source dive into the Nuxt Auth codebase.

We'll also talk about options for what you can do if you need to work with a suboptimal API.

This video can also be found on the VueScreencasts website here: https://www.vuescreencasts.com/watch/274