Just a couple of days ago I published a package I developed from scratch. The thing it lacked was the necessary Javascript to handle the registration and login in the frontend, which it’s a pain in the ass to make let alone manage.
Using that approach, I created a whole Larapass class, which is in charge of initializing the routes and headers that will be pushed to the server on the requests, parsing the responses from both sides, and also returning a Promise the user can use to register or login the user.
I can use the register and login methods to magically register the user device and the login to authenticate them in a flash. Authentication is relatively easy, since the user can input their email or username so the server can tell him what credentials can use.