question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not works getAccessToken in Spanish language

See original GitHub issue

I’m submitting a…

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other… Please describe:

Expected Behavior

Hi guys I’m testing the application and linking the app to AWS Cognito, currently I’m working with two languages Spanish and English if i test app in English it’s working but if i test the app in Spanish not is working. the next is the code that I’m testing the problem is that always in Spanish the app show the AccountLinkingCard() and i have the account linked.

if (
  !this.$request?.getAccessToken() &&
  !this.$alexaSkill?.$dialog?.alexaRequest?.context?.System?.person
  ?.accessToken &&
  !this.$user.getAccessToken()
) 
{
    //always shows the same message if alexa is in spanish
    return this.showAccountLinkingCard().tell(this.t("error-linked-account"));
} 
else {
   return this.followUpState(ROUTE_NAMES.MAIN).ask(this.t("main-select"));
}
},

Your Environment

  • Jovo Framework version used: 3.5.2
  • Operating System:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aswetlowcommented, Jan 5, 2022

Sorry for the late response.

I haven’t done the authorization myself. How did you authorize in en-US ?

1reaction
aswetlowcommented, Oct 18, 2021

The request object is logged in your terminal. This is a sample request:

{
  "version": "1.0",
  "session": {
    "new": false,
    "sessionId": "amzn1.echo-api.session.0000000-0000-0000-0000-00000000000",
    "application": {
      "applicationId": "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe"
    },
    "attributes": {},
    "user": {
      "userId": "amzn1.account.AM3B00000000000000000000000"
    }
  },
  "context": {
    "System": {
      "application": {
        "applicationId": "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe"
      },
      "user": {
        "userId": "amzn1.account.AM3B00000000000000000000000"
      },
      "device": {
        "deviceId": "amzn1.ask.device.XXXXXA6LX6BOBJF6XNWQM2ZO4NVVGZRFFEL6PMXKWLOHI36IY3B4XCSZKZPR42RAWCBSQEDNGS746OCC2PKR5KDIVAUY6F2DX5GV2SQAXPD7GMKQRWLG4LFKXFPVLVTXHFGLCQKHB7ZNBKLHQU4SJG6NNGA",
        "supportedInterfaces": {
          "AudioPlayer": {}
        }
      }
    },
    "AudioPlayer": {
      "offsetInMilliseconds": 0,
      "playerActivity": "IDLE"
    }
  },
  "request": {
    "type": "IntentRequest",
    "requestId": "amzn1.echo-api.request.0000000-0000-0000-0000-00000000000",
    "timestamp": "2015-05-13T12:34:56Z",
    "dialogState": "COMPLETED",
    "locale": "en-US",
    "intent": {
      "name": "HelpIntent",
      "confirmationStatus": "NONE",
      "slots": {}
    }
  }
}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validate and Use Access Tokens in Custom Skill Code
The handler for the LaunchRequest provides an intro to the skill and asks the user what they want to do. This handler does...
Read more >
az account get-access-token - fails to fetch token in user's ...
The way you are trying to use them is not the way they are meant to ... the managed identities as token targets,...
Read more >
OAuth::getAccessToken - Manual - PHP
Returns an array containing the parsed OAuth response on success or false on failure. Changelog ¶. Version, Description. PECL oauth 1.0.0, Previously returned ......
Read more >
API - Token flow and endpoints | Plaid Docs
API reference for obtaining and managing tokens, including the access_token, link_token, and public_token.
Read more >
[Tutorial] How to set up Account Linking for Alexa with Auth0 ...
Alexa Account Linking with Auth0 not getting JWT ... responses part for now until it's working to remove another layer of complexity ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found