Skip to content

Commit

Permalink
docs: fix fromKeyLike example
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 11, 2021
1 parent c297a3e commit 348b837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/functions/_jwk_from_key_like_.fromkeylike.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const { default: fromKeyLike } = require('jose/jwk/from_key_like')
**`example`**
```js
// usage
const privateJwk = fromKeyLike(privateKey)
const publicJwk = fromKeyLike(publicKey)
const privateJwk = await fromKeyLike(privateKey)
const publicJwk = await fromKeyLike(publicKey)

console.log(privateJwk)
console.log(publicJwk)
Expand Down
4 changes: 2 additions & 2 deletions src/jwk/from_key_like.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import asJWK from '../runtime/key_to_jwk.js'
* @example
* ```
* // usage
* const privateJwk = fromKeyLike(privateKey)
* const publicJwk = fromKeyLike(publicKey)
* const privateJwk = await fromKeyLike(privateKey)
* const publicJwk = await fromKeyLike(publicKey)
*
* console.log(privateJwk)
* console.log(publicJwk)
Expand Down

0 comments on commit 348b837

Please sign in to comment.