amadeus-node icon indicating copy to clipboard operation
amadeus-node copied to clipboard

Old token will be taken from cache even when Amadeus user credentials change

Open kerstinSimoneM opened this issue 2 years ago • 1 comments

Description

If you want to switch to another Amadeus account, you change the credentials but instead of requesting a new token, it seems like the old token is used from the first Amadeus account. How is it possible to ignore the old token In order to get a correct token for the new Amadeus account?

Steps to Reproduce

  1. Use the credentials from a second Amadeus account
  2. Run your project

Expected Behavior: I would expect the package to request a new token since it is a new Amadeus account

Actual Behavior: It seems like the old existing token from the first Amadeus account is used which produces the error Invalid token

Stable Behavior? 100%

Versions

Node: v14.8.0 npm: 6.14.15 OS: macOS Big Sur

Checklist

Please make sure you checked the following:

  • Are you running any of the current Node LTS versions?
  • Did you download the latest version of this library?

kerstinSimoneM avatar Oct 06 '21 08:10 kerstinSimoneM

Hello! I have tried with 2 different API keys (from different Amadeus accounts) and it is working as expected that I have received 2 different tokens to proceed with the APIs. = generate a new token if I use a different key.

can you please share the log if you still face the issue?

minjikarin avatar Jul 07 '22 10:07 minjikarin

i close this issue since there is no response for a month :)

minjikarin avatar Aug 11 '22 14:08 minjikarin