I'm missing something. I make a smart sensor that I want to use with alexa. I have a login with amazon profile created, and a test skill that works. But I need some way of linking an alexa user with a user account on my system so I can look up the endpointID for the device that my system controls. And I need to store the alexa bearer token/grant information locally so that when a device changes state I can forward that info to the gateway on behalf of the user.
Since the linking is done inside the alexa app and not on my site, what do I need on my end to authenticate this alexa user and connect that account with an account in my database? How does the authentication work? I do a standard email/password login on my site now.