Improve challenge handling

This commit is contained in:
Fedor Indutny 2022-09-14 17:31:37 -07:00 committed by GitHub
parent e0852abcdc
commit e3f418105b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 92 additions and 52 deletions

View file

@ -133,7 +133,9 @@ export const StandaloneRegistration = ({
setError('Captcha handler is not ready!');
return;
}
const token = await window.Signal.challengeHandler.requestCaptcha();
const token = await window.Signal.challengeHandler.requestCaptcha({
reason: 'standalone registration',
});
try {
requestVerification(type, number, token);