mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
60c94e97bc
commit
2d2c4ced74
2
types/node-jose/index.d.ts
vendored
2
types/node-jose/index.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user