Open ivands opened 2 years 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?!
@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.
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?