-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: toggle phone number registration #1157
base: main
Are you sure you want to change the base?
Conversation
Closes #1156 |
86f929c
to
cbb19fe
Compare
@@ -2,6 +2,13 @@ import axios from 'axios' | |||
import { checkAccountStatus, getIsAccountIdOnboarded } from './near' | |||
import { capsuleServer, sufficientFunds } from './utilities/config' | |||
|
|||
export async function requestOTP(phoneNumber: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also add a captchaRes
to requestOTP()
function. Basically, when phone number toggle is on, we want the user to solve captcha when request for an OTP from their phone number (ie. requestOTP()
function)
We also might have to disable/skip captcha verification on select-username step if phone number toggle is enabled, since captcha verification happens on enter-phone-number step in that case |
Pulled from backend channel:
|
No description provided.