Create a homepage for your anonymous user role. Add a helper entity with username and password fields, and use the 'sign-in' nanoflow action from the nanoflow commons module to sign in your user.
The native mobile quick start template also contains a good example.
I need help. I created a module for testing, I haven't done anything to it yet. However, the module already has a login screen and logic but it doesn't work. After signing in, the app closes and does not generate logs. When trying to log in with an invalid user (on purpose) the app works normally generating a 401 error, but when entering with user admin MxAdmin the app closes