normalizeCredentialFormat()
@hyperledger/identus-sdk v8.0.0
@hyperledger/identus-sdk / plugins/internal/oea / OEA / normalizeCredentialFormat
Function: normalizeCredentialFormat()
normalizeCredentialFormat(
format:string):string
Defined in: packages/lib/sdk/src/plugins/internal/oea/types.ts:28
Normalizes a credential format string to the canonical format. Treats "jwt" and "prism/jwt" as equivalent (returns "prism/jwt" for backward compat).
Parameters
| Parameter | Type | Description |
|---|---|---|
format | string | The credential format string to normalize |
Returns
string
The canonical format string