login created token, but still get an error react

I have a react native application. And an login service call.

And if I trigger the login service call the token has been created. But I still get an login failed error. So this is the service call:

export const loginRequest = async (email, password) => {
    try {
        const response = await fetch("http://192.168.1.65:8000/api/user/token/", {
            method: "POST",
            headers: {
                "Content-Type": "application/json",
            },
            body: JSON.stringify({
                email: email,
                password: password,
            }),
        });

        const data = await response.json();
        console.log(data);

        if (response.ok) {
            await AsyncStorage.setItem("Token", data.access);

            return true;
        } else {
            throw new Error(data.detail);
        }
    } catch (error) {
        throw new Error("Login failed");
    }
};

And in the console I see that the token has created:

 Object {
  "token": "a608aa4c5c584f288c6afce37ef963985ec64f1c",
}


Question: how to proper login?