How to obtain userId specified by Alexa user during account linking

前端 未结 1 1094
青春惊慌失措
青春惊慌失措 2020-12-22 12:36

During account linking process, Alexa user is redirected and presented with a form to enter his credentials (ID and/or password). Based on what\'s provided, the user is the

相关标签:
1条回答
  • 2020-12-22 12:54

    Are you referring to the userId specified by your OAuth provider? There should be an API to retrieve the userId based on the accessToken. Using Login with Amazon for example, when you verify the access token, it would return user_id as part of the response.

    If you're referring to getting the user's email (that's the "ID" to login to an Amazon account), you would need to add the relevant scope (e.g. profile for LWA) based on your OAuth provider in order to retrieve that from an accessToken.

    0 讨论(0)
提交回复
热议问题