[REQ][TypescriptAxios] want to use promise in apiKey when using Authenticate Server
Created by: tanmen
When I used cognito(authenticate server), I found it difficult to use typescript-client.
Now
getApiToken().then(token => new PetApi(new Configuration({apiKey: token}))).then(api => api.getPets());
I hope to be
new PetApi(new Configuration({apiKey: getApiToken})).getPets();
Is your feature request related to a problem? Please describe.
N/A
Describe the solution you'd like
I want a Promise Type for apiKey.
Describe alternatives you've considered
#5953
Additional context
N/A