A suggestion regarding typings for the Amplify.configure() function #5095
Labels
Auth
Related to Auth components/category
feature-request
Request a new feature
fixed-in-dev-preview
Issues that are fixed in v6 dev preview
TypeScript
Related to TypeScript issues
Milestone
Hey @dabit3 , I had sent added a comment on your tweet regarding the improvements that could be made to the Amplify docs but I had mentioned a couple of enchancements that I could contribute to, if possible.
I had the following points in mind and have created an example repository for the same.
The
Amplify.configure()
and theAuth.configure()
have a config type ofany
. Is is possible to add types for these?I have created a
getToken
method in theauth.tsx
file in the above repo that obtains the token from either a username/password login or a social login for validating against API's. Is this the correct way to obtain the token or is there any other inbuild method that amplify provides?The text was updated successfully, but these errors were encountered: