Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivands opened this issue Jan 5, 2022 · 2 comments
Open

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

ivands opened this issue Jan 5, 2022 · 2 comments

Comments

@ivands
Copy link

ivands commented Jan 5, 2022

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?

pravendra93 added a commit to pravendra93/amazon-user-pool-srp-client that referenced this issue Jan 15, 2022
@renatoargh
Copy link

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
Copy link
Author

ivands commented Apr 3, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants