Authentication and Authorization

I have followed and code along with the instructor up to thie authentication and authorization where I got stuck. The login and register not working after trying different methods. I think I will look for another course to understand authentication and authorization better.

![i cannot login|301x500]

1 Like

The process flow in the course works – I just completed that section a few days ago.

I can’t tell from the screenshot what specific error is creating a problem for you. Maybe if you provide more detail, I or someone else can help.

try running the code with the below handleSubmit function.
remove loginFailed state and if(!result.ok) stuff just for now.

`` const handleSubmit = async ({ email, password }) => {
const result = await authApi.login(email, password)

@Oybek are you from Uzbekistan? Do you have contacts?