Day 6

Now that I have a new user, I will update the frontend to talk to the new backend.

I started by updating the original logIn.tsx file to use the login function provided in https://github.com/laravel/breeze-next/blob/master/src/hooks/auth.js (same as the file I used in the registering flow).

It was a lot easier this time around because I had been through the process with the registering flow. I replaced the calls to my existing login logic with the new login function. Then I updated how the errors are shown. They are now arrays, so I updated the code to reflect that.

I am getting a 200 from the /login endpoint, but there is an issue after that. The logic calls a mutate function from SWR, but nothing seems to happen. It tries to then hit /api/user, and that returns a 401.

I will look at this more next time.