question

newuser-7d2dda42-e1df-49df-9b1a-fc41835cda81 avatar image

Do I need to use code challenge method for Login with Amazon if it's iOS Alexa app with headset as product

I am making iOS AVS client which can connect to a wireless headset.

There are 2 ways for login with Amazon :

- Authorize from a Companion app (https://developer.amazon.com/docs/alexa-voice-service/authorize-companion-app.html)

- Authorize from an AVS product (https://developer.amazon.com/docs/alexa-voice-service/authorize-on-product.html)

I have registered the headset as Alexa product (Alexa product as a device, not application), even though the headset is just an audio input/output device and the app is doing all the Alexa handling.

My question is: do I need to follow the 'Authorize from a companion app' approach for login with amazon, which means the app first need to get an authorisation code, then request for the access token?

Or can the app just follow the 'Authorize from an AVS product' approach, and get the access token directly?

alexa skills kitalexa voice servicelogin with amazoncompanion app
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

elstryan@Amazon avatar image
elstryan@Amazon answered

You should keep your access token with the AVS client (since this is the mobile phone in this case) that implies you can follow the "Authorize from an AVS product" flow. Let us know if you have more questions!

10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.