integration with user & pass
Hello
I'm trying to integrate the library to esp32cam with MJPEG2SD, but I don't want to use a long term token. I have added html and javascript to open a link like http://homeassistant.local:8123/auth/authorize?client_id="+hostURL+"&redirect_uri="+hostURL+"rest?setCode=1&state="+hostURL With that link I identify myself with my homeassistant user account and it redirects me to the page I am preparing that recognizes the update code, but once I get the code I don't know how to get a valid token to register the device.
Couldn't you add a captive page that allows you to register the device or something similar? or at least explain me how to register it
By the way, I had to edit the library because it didn't return anything when I received an httpCode 201
if (httpCode == 201 || httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY)