-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
Deploying with
|
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 |
*/ | ||
async createAccount(email) { | ||
async createAccount(email, opts) { |
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.
Need to pass opts to waitForVoucherRedeem
.
packages/access/src/agent.js
Outdated
/** @type {import('./types').EncodedDelegation<[import('./types').VoucherRedeem]>} */ ( | ||
msg.delegation | ||
try { | ||
const msg = await ws.awaitMsg() |
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.
const msg = await ws.awaitMsg() | |
const msg = await ws.awaitMsg(opts) |
packages/access/src/agent.js
Outdated
if (error instanceof AbortError) { | ||
await ws.close() | ||
throw error | ||
} |
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.
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 }) |
🤖 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).
🤖 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).
No description provided.