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.