Skip to content
LogoLogo

Credential.deserialize

Deserialize a Credential from a header

Deserializes an Authorization header value to a Credential.

Usage

import {  } from 'mppx'
 
const  = 'Payment eyJjaGFsbGVuZ2UiOnsi...'
const  = .()

Return type

type ReturnType = Credential<payload>

The deserialized Credential object.

mppx parses the echoed Challenge inside the Credential, decoding request and opaque from their base64url-encoded wire strings back to structured values for application code.

Parameters

value

  • Type: string

The Authorization header value.