I am a bit confused about user authentication for SPAs communicating with an API. I am used to checking the user’s cred against the database and then creating a session/cookie.
I am currently working on adding user authentication to my client app using Auth0. I am able to have the user login on the client with Auth0-lock and have it redirect back to my app with the JWT.
When I try to make a get request, I am still getting 401 error and I assume it’s because I don’t have my User model set up correctly.