Invalid types returned from Auth.signIn #3316
Labels
Auth
Related to Auth components/category
feature-request
Request a new feature
TypeScript
Related to TypeScript issues
Milestone
Describe the bug
The type returned from
Auth.signIn
method isPromise<CognitoUser | any>
which literally gives no type safety.From what I see, internally (e.g. here ) the user is assigned dynamically a property that is not in its interface (
challengeName
).Expected behavior
I expect types in the library to be precise and correct, and
challengeName
to be typed as well.I'd suggest following typing:
The text was updated successfully, but these errors were encountered: