diff --git a/lib/jwe/encrypt.js b/lib/jwe/encrypt.js index 355f2c7a..ccd76ae2 100644 --- a/lib/jwe/encrypt.js +++ b/lib/jwe/encrypt.js @@ -190,7 +190,11 @@ class Encrypt { let aad if (this._aad) { final.aad = base64url.encode(this._aad) - aad = Buffer.concat([Buffer.from(final.protected || ''), Buffer.from('.'), Buffer.from(final.aad)]) + aad = Buffer.concat([ + Buffer.from(final.protected || ''), + Buffer.from('.'), + Buffer.from(final.aad) + ]) } else { aad = Buffer.from(final.protected || '') }