Stability | internal |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
This module handles the decoding of structures returned by the create() and get() methods while Registering a New Credential and Verifying an Authentication Assertion respectively.
Synopsis
- class Convert a => Decode a where
- class Convert a => DecodeCreated a where
- decodeCreated :: SupportedAttestationStatementFormats -> IDL a -> Either Text a
Documentation
class Convert a => Decode a where Source #
indicates that the Haskell-specific type Decode
aa
can be
decoded from the more generic JavaScript type
with the IDL
adecode
function.
Nothing
Instances
class Convert a => DecodeCreated a where Source #
Like Decode
, but with a decodeCreated
function that also takes a
SupportedAttestationStatementFormats
in order to allow decoding to depend
on the supported attestation formats.
decodeCreated :: SupportedAttestationStatementFormats -> IDL a -> Either Text a Source #