-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocs_sdk_get-verification-message.html
30 lines (22 loc) · 1.26 KB
/
docs_sdk_get-verification-message.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!-- Docs - SDK - getVerificationMessage -->
<div class="section">
<h2><a href="/docs/">Docs</a> : <a href="/docs/sdk/">SDK</a> : getVerificationMessage</h2>
<p>The <span class="font-semibold">Get Verification Message</span> API lets you retrieve a user's verification message. The user can give this verification message to other users in person (by scanning a QR code for example), or through a secure 3rd party channel such as <a href="https://signal.org/en/" target="_blank">Signal</a>. Other users can then take the user's verification message and call <a href="/docs/sdk/verify-user/">verifyUser</a> to make sure that they are sharing data directly with that user and not a <a href="https://en.wikipedia.org/wiki/Man-in-the-middle_attack" target="_blank">man-in-the-middle</a>.</p>
<pre>
<code class="language-javascript">
userbase.getVerificationMessage().then(({ verificationMessage }) => {
// verification message to give to other users so they can verify you
}).catch((e) => console.error(e))
</code>
</pre>
<h3 id="result">Result</h3>
<ul>
<li><span class="field">verificationMessage</span> [string]</li>
</ul>
<h3 id="errors">Errors</h3>
<ul>
<li>UserNotSignedIn</li>
<li>ServiceUnavailable</li>
</ul>
</div>
<hr>