I'm building a device that uses the https://github.com/amzn/alexa-avs-raspberry-pi/ project to turn my raspberry pi into a headless AVS device. I found https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/authorizing-your-alexa-enabled-product-from-an-android-or-ios-mobile-app but I'm struggling to figure out how to authenticate the device to AVS so I don't have to load a browser every time the device is rebooted to authorize it to use the Alexa Voice Service.
Is there any sample code beyond whats on that page? would it be the companionApp that I need to look into changing instead of the sample javaclient? should I be looking at https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/authorizing-your-alexa-enabled-product-from-a-website instead?
It's all a bit over my head and I'm not sure where to start. I want to be able to power on my raspberry pi and be able to press a hardwired button and ask it questions like an echo (I have the hardwired button working already). I can't require a user to have to VNC into the device and use a browser every time it reboots. Once off may be fine, but not every time.