UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

1 lines • 475 B
{"version":3,"file":"extraction.mjs","names":[],"sources":["../../../src/modules/x509/extraction.ts"],"sourcesContent":["import type { Jwt } from '../../crypto'\n\nimport { X509Certificate } from './X509Certificate'\n\nexport function extractX509CertificatesFromJwt(jwt: Jwt) {\n return jwt.header.x5c?.map((cert) => X509Certificate.fromEncodedCertificate(cert))\n}\n"],"mappings":";;AAIA,SAAgB,+BAA+B,KAAU;CACvD,OAAO,IAAI,OAAO,KAAK,KAAK,SAAS,gBAAgB,uBAAuB,IAAI,CAAC;AACnF"}