daostack / daostack/common

Webview: Phone Number sign-in

Open
#1,409 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Get credentials as below and send it via webview
``` const credential = auth.PhoneAuthProvider.credential(confirm.verificationId, code);```

VerificationId you can get from here (PhoneNumberStep1 component)
```
const confirm = await AuthService.signInPhone(phoneNumber);
```

Code (VerificationStep2 component)
```
// TODO: here I can get credentials : value=sms_code
const userInfoResp = await confirm.confirm(value);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.