doipjs/examples/fetch-profile-wkd.js
2023-07-09 12:03:51 +02:00

11 lines
No EOL
267 B
JavaScript

import * as doip from '../src/index.js'
const main = async () => {
// Fetch the profile using WKD
const profile = await doip.openpgp.fetchWKD("test@doip.rocks")
// Log the claims of the first persona
console.log(profile.personas[0].claims)
}
main()