Skip to content

Commit

Permalink
docs: update UnsecuredJWT.decode variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jun 27, 2024
1 parent b062a27 commit 8d397cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/classes/jwt_unsecured.UnsecuredJWT.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ console.log(unsecuredJwt)
Decoding

```js
const payload = jose.UnsecuredJWT.decode(jwt, {
const payload = jose.UnsecuredJWT.decode(unsecuredJwt, {
issuer: 'urn:example:issuer',
audience: 'urn:example:audience',
})
Expand Down
2 changes: 1 addition & 1 deletion src/jwt/unsecured.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface UnsecuredResult<PayloadType = JWTPayload> {
* Decoding
*
* ```js
* const payload = jose.UnsecuredJWT.decode(jwt, {
* const payload = jose.UnsecuredJWT.decode(unsecuredJwt, {
* issuer: 'urn:example:issuer',
* audience: 'urn:example:audience',
* })
Expand Down

0 comments on commit 8d397cb

Please sign in to comment.