Now that we have a Registration form, we need our users to be able to log inLogin:

Here's what we need to do:
- We must install a
device_info_pluspackage to get Device information. - We need a
login()function on our Auth Provider. - We need to add a Login form.
Installing New Package
First, we will need a package to be installed...
I got some compatibility issues with the
device_info_pluspackage and the Android NDK version, to be specific this was the error message:My Solution Change the Android NDK version directly in the Flutter SDK, right in the file:
searching the line
and replace it by
What's the 'best practice' robust means of dealing with the login response status code outside of the 200 or 422 handled here? At the moment it seems any error code will result in the response.body being returned as if it were a valid API token.
Is this enough?
It really depends on what you want to handle. For generic handling of an issue - this is fine.
But in case you want to handle things in a graceful way - you need to handle each status individually. And that could add a lot of work (no automation or handle all), but it gives a nicer user experience.