Skip to content

Commit

Permalink
feat: add capabilities option type for authorize (#687)
Browse files Browse the repository at this point in the history
Is missing.
  • Loading branch information
Alan Shaw authored Mar 29, 2023
1 parent 7f5d709 commit bf262dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/w3up-client/src/capability/access.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class AccessClient extends Base {
* @param {`${string}@${string}`} email
* @param {object} [options]
* @param {AbortSignal} [options.signal]
* @param {Iterable<{ can: import('../types').Ability }>} [options.capabilities]
*/
async authorize(email, options) {
return authorizeWaitAndClaim(this._agent, email, options)
Expand Down
1 change: 1 addition & 0 deletions packages/w3up-client/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class Client extends Base {
* @param {`${string}@${string}`} email
* @param {object} [options]
* @param {AbortSignal} [options.signal]
* @param {Iterable<{ can: import('./types').Ability }>} [options.capabilities]
*/
async authorize(email, options) {
await this.capability.access.authorize(email, options)
Expand Down

0 comments on commit bf262dd

Please sign in to comment.