You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to use Bearer authentication with AWS Amliply. Amplify returns tokens as promises (as it checks whether the current token has expired and attempts to refresh it).
Is your feature request related to a problem? Please describe.
I want to use Bearer authentication with AWS Amliply. Amplify returns tokens as promises (as it checks whether the current token has expired and attempts to refresh it).
However, the generated API only accepts plain strings or functions returning plain strings for
accessToken
.Describe the solution you'd like
Just as for
apiKey
, extend the signature ofaccessToken
to accept promises:In the generated code, only the keyword
await
must be added in two placesDescribe alternatives you've considered
I'm not aware of any alternative solution
The text was updated successfully, but these errors were encountered: