mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
14 lines
337 B
JavaScript
14 lines
337 B
JavaScript
|
const doip = require('../src')
|
||
|
|
||
|
const main = async () => {
|
||
|
// Fetch the key using WKD
|
||
|
const key = await doip.keys.fetchWKD("test@doip.rocks")
|
||
|
|
||
|
// Process it to extract the UIDs and their claims
|
||
|
const obj = await doip.keys.process(key)
|
||
|
|
||
|
// Log the claims of the first UID
|
||
|
console.log(obj.users[0].claims)
|
||
|
}
|
||
|
|
||
|
main()
|