Skip to main content

CredentialPlugin.matchKeyForJWT() method

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Checks if a key is suitable for signing JWT payloads.

Signature:

matchKeyForJWT(key: IKey, context: IssuerAgentContext): Promise<boolean>;

Parameters

ParameterTypeDescription
keyIKeythe key to check
contextIssuerAgentContextthe Veramo agent context, unused here

Returns:

Promise<boolean>