From 8d397cb1aadf99cc7981e668c5c41521723777ee Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 27 Jun 2024 18:03:11 +0200 Subject: [PATCH] docs: update UnsecuredJWT.decode variable name --- docs/classes/jwt_unsecured.UnsecuredJWT.md | 2 +- src/jwt/unsecured.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/classes/jwt_unsecured.UnsecuredJWT.md b/docs/classes/jwt_unsecured.UnsecuredJWT.md index 0c89084dfc..a5712458df 100644 --- a/docs/classes/jwt_unsecured.UnsecuredJWT.md +++ b/docs/classes/jwt_unsecured.UnsecuredJWT.md @@ -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', }) diff --git a/src/jwt/unsecured.ts b/src/jwt/unsecured.ts index 69ca946ff5..bcfc0a7a50 100644 --- a/src/jwt/unsecured.ts +++ b/src/jwt/unsecured.ts @@ -34,7 +34,7 @@ export interface UnsecuredResult { * Decoding * * ```js - * const payload = jose.UnsecuredJWT.decode(jwt, { + * const payload = jose.UnsecuredJWT.decode(unsecuredJwt, { * issuer: 'urn:example:issuer', * audience: 'urn:example:audience', * })