Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 653 Bytes

util_decode_protected_header.decodeProtectedHeader.md

File metadata and controls

21 lines (14 loc) · 653 Bytes

Function: decodeProtectedHeader

decodeProtectedHeader(token): ProtectedHeaderParameters

Decodes the Protected Header of a JWE/JWS/JWT token utilizing any JOSE serialization.

example Usage

const protectedHeader = jose.decodeProtectedHeader(token)
console.log(protectedHeader)

Parameters

Name Type Description
token string | object JWE/JWS/JWT token in any JOSE serialization.

Returns

ProtectedHeaderParameters