[Tutorial] How to set up Account Linking for Alexa with Auth0 and Jovo


In this guide, we will show you how to set up Account Linking for your Amazon Alexa Skill, without having to deal with all the security issues and the burden of running your own OAuth 2.0 server. We will do this by using Auth0, a service for developers to authorize and authenticate users, which is a helpful tool for Alexa Account Linking.

This is a companion discussion topic for the original entry at https://www.jovo.tech/tutorials/alexa-account-linking-auth0


Important: Set the default audience in your tenant settings (top right) to https://YOUR-DOMAIN.eu.auth0.com/api/v2/. Else Alexa will only get a really short opaque access token instead of a signed JWT.


Hi all,

I am not receiving a response for retrieving user data after linking account. Here is some data:

  • We have successfully linked account with account linking card
  • We use database connection rather than social connection
  • Alexa does not respond or throw any errors. She simply closes the application.

Here is our current code:

launch : async function (that) {
        if (!that.$request.getAccessToken()) {
            that.$speech.addText('Please link you Account');
        } else {
            let token = that.$request.getAccessToken();
            let options = {
                method: 'GET',
                uri: 'https://voicefirsttech.auth0.com/userinfo', // You can find your URL on Client --> Settings --> 
                // Advanced Settings --> Endpoints --> OAuth User Info URL
                headers: {
                    authorization: 'Bearer ' + token,
                .then(() => that.$alexaSkill.progressiveResponse('Still processing'));
            await rp(options).then((body) => {
                let data = JSON.parse(body);
                To see how the user data was stored,
                go to Auth -> Users -> Click on the user you authenticated earlier -> Raw JSON
                return that.tell("HELLO WORLD");// Output: Kaan Kilic, email@jovo.tech

And the Response from Alexa

	"version": "1.0",
	"session": {
		"new": true,
		"sessionId": "amzn1.echo-api.session.33a28b08-055e-4a74-93a1-0288b6a4b540",
		"application": {
			"applicationId": "amzn1.ask.skill.d3cb6156-f160-401c-ab25-fa04fc5c3861"
		"user": {
			"accessToken": "PrLPPpuqmT3jKaxfPbFBIf58PY-dFJW4"
	"context": {
		"System": {
			"application": {
				"applicationId": "amzn1.ask.skill.d3cb6156-f160-401c-ab25-fa04fc5c3861"
			"user": {
				"accessToken": "PrLPPpuqmT3jKaxfPbFBIf58PY-dFJW4"
			"device": {
				"supportedInterfaces": {
					"Geolocation": {}
			"apiEndpoint": "https://api.amazonalexa.com",
	"request": {
		"type": "LaunchRequest",
		"requestId": "amzn1.echo-api.request.6d22e7ae-fa48-43bd-94df-b7646ae2509a",
		"timestamp": "2019-05-17T22:23:02Z",
		"locale": "en-US",
		"shouldLinkResultBeReturned": false
	"version": "1.0",
	"response": {
		"shouldEndSession": true
	"sessionAttributes": {}

As you can see there are no speech tags in the response.


Does it go into the else block? Could you verify that by logging the data after making the request?

Also, I would probably get rid of the progressive responses part for now until it’s working to remove another layer of complexity



here is the response I receive:

  sub: 'auth0|8683a81e-4975-40d9-b9ce-cc0a3edbc743',
  nickname: 'voicefirsttech',
  name: 'voicefirsttech@gmail.com',
  picture: 'https://s.gravatar.com/avatar/c18b64d675c7a176072bcf363459ac21?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fvo.png',
  updated_at: '2019-05-27T14:40:16.474Z',
  email: 'voicefirsttech@gmail.com' }

I would like the FULL user profile:


Hi, added something in the other thread: Get FULL Profile in Alexa Account Linking


Can we use the JOVO CLI to add account linking?

Looks like account linking is not same as SMAPI for Alexa

Does Jovo offer these capabilities?



Hi @jan Jan,
I have followed the same steps, i have authenticated using google in the login window. My endpoint throws jws malformed, also the token got shorted not the one given in auth0 quick start.


@jan Is there any way to make a single Jovo app handle account linking for both Google Assistant and Alexa?