-
Notifications
You must be signed in to change notification settings - Fork 375
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
Update @celo/utils to allow AccountAuthResponseSuccess to include pepper #7546
Conversation
import { PhoneNumberUtils } from '@celo/utils' | ||
const attestations = await kit.contracts.getAttestations() | ||
|
||
const identifier = PhoneNumberUtils.getPhoneHash(dappkitResponse.phoneNumber, dappkitResponse.pepper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! One nit: we are trying to standardize the style in the docs; could you add semi-colons to the end of the lines in this code snippet? Other than that looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left a comment about the snippet code style but other than that good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
Description
This PR adds an optional field for the pepper to be passed as part of the dappkit response. It also updates the dappkit docs to indicate usage whenever it will be deployed as part of Valora (which requires this to be published first)
Tested
Related issues
Backwards compatibility