fix: jose.util.base64url.decode returns Buffer (#48096)

According to [their documentation][1] and my testing, the base64url decode
util returns a Buffer, not a string.

https://github.com/cisco/node-jose#uri-safe-base64
This commit is contained in:
Jeremy Thomerson 2020-09-23 18:04:35 -04:00 committed by GitHub
parent 60c94e97bc
commit 2d2c4ced74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ export namespace util {
function randomBytes(len: number): Buffer;
namespace base64url {
function decode(base64url: string): string;
function decode(base64url: string): Buffer;
function encode(buffer: string | Buffer, encoding?: string): string;
}