mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-24 23:49:27 -07:00
29 lines
864 B
Markdown
29 lines
864 B
Markdown
# Quick start (browser)
|
|
|
|
Basic example:
|
|
|
|
```javascript
|
|
const verifyIdentity = async (url, fp) => {
|
|
console.log(await doip.claims.verify(url, fp))
|
|
}
|
|
verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')
|
|
```
|
|
|
|
This snippet works en will verify the [doip.rocks](https://doip.rocks) domain as
|
|
linked to Yarmo's cryptographic key using the [dns](serviceproviders/dns.md)
|
|
service provider.
|
|
|
|
Please note you need to include the
|
|
[openpgpjs](https://github.com/openpgpjs/openpgpjs) library:
|
|
|
|
```html
|
|
<script src="https://cdn.jsdelivr.net/npm/openpgp/dist/openpgp.min.js"></script>
|
|
```
|
|
|
|
## Twitter account verification
|
|
|
|
By default, Twitter accounts verification has to be enabled by either having a
|
|
Twitter developer account or providing a Nitter instance domain.
|
|
|
|
Please refer to the
|
|
[API documentation](/#/api?id=claimsverifyuri-fingerprint-opts).
|