verifyCredential
Verify a credential against a CKB address.
Types
function verifyCredential ( pubkey: string, address: string, keyType: 'main_key' | 'sub_key'): Promise<boolean>Example
import { authWithPopup, verifyCredential } from '@joyid/core'const authRes = await authWithPopup(request)if (authRes.error == null) { const { keyType, address, pubkey } = authRes.data const result = await verifyCredential(pubkey, address, keyType) alert(result) // true or false}Details
- See also: Guide - Verify Credential with a live demo