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

feat: add cancel create account #132

Merged
merged 3 commits into from
Nov 1, 2022
Merged

Conversation

hugomrdias
Copy link
Contributor

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 27, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1ef6632
Status: ✅  Deploy successful!
Preview URL: https://bdf33aec.ucan-protocol.pages.dev
Branch Preview URL: https://feat-cancel-create-account.ucan-protocol.pages.dev

View logs

*/
async createAccount(email) {
async createAccount(email, opts) {
Copy link
Member

Choose a reason for hiding this comment

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

Need to pass opts to waitForVoucherRedeem.

/** @type {import('./types').EncodedDelegation<[import('./types').VoucherRedeem]>} */ (
msg.delegation
try {
const msg = await ws.awaitMsg()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const msg = await ws.awaitMsg()
const msg = await ws.awaitMsg(opts)

Comment on lines 225 to 228
if (error instanceof AbortError) {
await ws.close()
throw error
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (error instanceof AbortError) {
await ws.close()
throw error
}
if (error instanceof AbortError) {
await ws.close()
throw error
}
throw new Error('Failed to get voucher/redeem', { cause: error })

@hugomrdias hugomrdias merged commit feec113 into main Nov 1, 2022
@hugomrdias hugomrdias deleted the feat/cancel-create-account branch November 1, 2022 12:13
alanshaw pushed a commit that referenced this pull request Nov 1, 2022
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](access-v3.1.2...access-v4.0.0)
(2022-11-01)


### ⚠ BREAKING CHANGES

* Remove 0.8 caps and add account delegation to the service (#123)

### Features

* add cancel create account
([#132](#132))
([feec113](feec113))
* Remove 0.8 caps and add account delegation to the service
([#123](#123))
([878f8c9](878f8c9)),
closes [#117](#117)
[#121](#121)


### Bug Fixes

* throw error or return value
([#131](#131))
([cddf7b9](cddf7b9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
gobengo pushed a commit that referenced this pull request Apr 11, 2023
gobengo pushed a commit that referenced this pull request Apr 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](access-v3.1.2...access-v4.0.0)
(2022-11-01)


### ⚠ BREAKING CHANGES

* Remove 0.8 caps and add account delegation to the service (#123)

### Features

* add cancel create account
([#132](#132))
([0336116](0336116))
* Remove 0.8 caps and add account delegation to the service
([#123](#123))
([c3c58b9](c3c58b9)),
closes [#117](#117)
[#121](#121)


### Bug Fixes

* throw error or return value
([#131](#131))
([c9abfb9](c9abfb9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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

Successfully merging this pull request may close these issues.

2 participants