borisirota / amazon-user-pool-srp-client

standalone srp client for amazon user pool service
9 stars 10 forks source link

It's missing code to confirm a device. #6

Open ivands opened 2 years ago

ivands commented 2 years ago

When logging into Cognito it will give you a DeviceKey & DeviceGroupKey. This is needed to confirm your device so that your refresh token starts working.

Sadly this library doesn't have any way to do the stuff needed to confirm a device. Are you planning to add this?

renatoargh commented 3 months ago

Hey @pravendra93 your PR helped me to get the device confirmation to work! thank you!!! Could you now maybe help me understand how to calculate the necessary parameters that we must pass to DEVICE_PASSWORD_VERIFIER (the challenge that we get in response to DEVICE_SRP_AUTH ). It is quite confusing and since you implemented device confirmation it is likely that you also had to go through this step. Thanks again!

@ivands have you successfully implemented the complete flow?! Can you maybe help me here too?!

ivands commented 3 months ago

@renatoargh I ended up making my own implementation. https://github.com/awsless/awsless/tree/main/packages/cognito Try it out and let me know how you like it.