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

Update @celo/utils to allow AccountAuthResponseSuccess to include pepper #7546

Merged
merged 10 commits into from
Mar 31, 2021

Conversation

nambrot
Copy link
Contributor

@nambrot nambrot commented Mar 27, 2021

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

  • Not tested

Related issues

Backwards compatibility

  • It's an optional field, thus backwards compatible

import { PhoneNumberUtils } from '@celo/utils'
const attestations = await kit.contracts.getAttestations()

const identifier = PhoneNumberUtils.getPhoneHash(dappkitResponse.phoneNumber, dappkitResponse.pepper)
Copy link
Contributor

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!

Copy link
Contributor

@eelanagaraj eelanagaraj left a 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

Copy link
Contributor

@codyborn codyborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@nambrot nambrot added the automerge Have PR merge automatically when checks pass label Mar 29, 2021
@mergify mergify bot merged commit 91a64b7 into master Mar 31, 2021
@mergify mergify bot deleted the nambrot/dappkit-pepper branch March 31, 2021 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants