Login with Hassio username password in API

Hello, I am trying to build a mobile app, to control all the devices directly through app. Here in the API documentation it mentioned that I need to use Long Live Access Token. Which I need to generate after login to Hassio and from Profile.

I want to get the Token through API itself. Is it possible to do?

Looking forward to know the solution, I can not find anywhere in the documentation.

Thank you!

Can’t help you on the Authentication thing, however I would like to know more about the mobile app you want to create.
Is there any specific need that the official apps don’t cover or what is your motivation behind creating this app?

This might help: https://developers.home-assistant.io/docs/en/next/frontend_external_auth.html#__docusaurus

1 Like

I am creating for everyone. Anyone will be able to use it. But the only thing is its just a simple app with more simpler UI. I will further extend the app with automations and everything you can do from home assistant almost.

This looks helpful but the problem is, its I guess for Web Application. I need for mobile application.