forked from Mirrors/doipjs
Add Twitter configuration to docs
This commit is contained in:
parent
30ac7b205d
commit
0bb3a59964
3 changed files with 32 additions and 5 deletions
21
docs/api.md
21
docs/api.md
|
@ -16,15 +16,26 @@ Verifies the identity behind the provided **uri** using the **fingerprint**.
|
||||||
|
|
||||||
**Options**
|
**Options**
|
||||||
|
|
||||||
| Name | Type | Default value | Description |
|
| Name | Type | Default value | Description |
|
||||||
| ----------------- | ------- | -------------------- | ------------------------------------------------------------------- |
|
| ------------------ | ------- | -------------------- | ---------------------------------------------------------------------- |
|
||||||
| returnMatchesOnly | boolean | false | only return matching service providers, do not attempt verification |
|
| returnMatchesOnly | boolean | false | only return matching service providers, do not attempt verification |
|
||||||
| proxyPolicy | string | 'adaptive' | when to use a proxy ['adaptive', 'fallback', 'always', 'never'] |
|
| proxyPolicy | string | 'adaptive' | when to use a proxy ['adaptive', 'fallback', 'always', 'never'] |
|
||||||
| doipProxyHostname | string | 'proxy.keyoxide.org' | the hostname of the proxy server |
|
| doipProxyHostname | string | 'proxy.keyoxide.org' | the hostname of the proxy server |
|
||||||
|
| twitterBearerToken | string | '' | the Twitter API bearer token used for Twitter verification |
|
||||||
|
| nitterInstance | string | '' | the domain name of the nitter instance to use for Twitter verification |
|
||||||
|
|
||||||
When the `proxyPolicy` option is to `adaptive`, the chosen strategy is
|
When the `proxyPolicy` option is to `adaptive`, the chosen strategy is
|
||||||
the one suggested by the service provider.
|
the one suggested by the service provider.
|
||||||
|
|
||||||
|
By default, Twitter accounts are not verified. Either provide a
|
||||||
|
[Twitter bearer token](https://developer.twitter.com/en/docs/authentication/oauth-2-0/bearer-tokens)
|
||||||
|
(as `twitterBearerToken`) or the domain name of a Nitter instance (as
|
||||||
|
`nitterInstance`) to enable Twitter account verification. If both values are
|
||||||
|
provided, only the Twitter bearer token is used.
|
||||||
|
|
||||||
|
Note that Nitter instances are subject to rate limiting which would instantly
|
||||||
|
break Twitter account verification.
|
||||||
|
|
||||||
**Returns**
|
**Returns**
|
||||||
|
|
||||||
An object with the results of the identity claim verification containing a
|
An object with the results of the identity claim verification containing a
|
||||||
|
|
|
@ -19,3 +19,11 @@ Please note you need to include the
|
||||||
```html
|
```html
|
||||||
<script src="https://cdn.jsdelivr.net/npm/openpgp/dist/openpgp.min.js"></script>
|
<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).
|
||||||
|
|
|
@ -14,3 +14,11 @@ verifyIdentity('dns:doip.rocks', '9f0048ac0b23301e1f77e994909f6bd6f80f485d')
|
||||||
This snippet works en will verify the [doip.rocks](https://doip.rocks) domain as
|
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)
|
linked to Yarmo's cryptographic key using the [dns](serviceproviders/dns.md)
|
||||||
service provider.
|
service provider.
|
||||||
|
|
||||||
|
## 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).
|
||||||
|
|
Loading…
Reference in a new issue