-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Link via phone number instead of QR #1687
Comments
|
is this as simple as adding this in createSessionUtil()? phoneNumber: client.config?.phoneNumber, I've tried it locally but it doesn't return the link code for some reason :( Also, a new route similar to POST /qrcode-session which gets you the link code would be nice. |
So that's one way. At the moment we have not yet implemented it in a standard way on the server, it will soon be implemented in the next release.
|
With the newest release, I tried the above but still it doesn't output the code in the terminal. After some debugging I found that it gets stuck in evaluateAndReturn: protected async loginByCode(phone: string) {
const code = await evaluateAndReturn(
this.page,
async ({ phone }) => {
return JSON.parse(
JSON.stringify(await WPP.conn.genLinkDeviceCodeForPhoneNumber(phone))
);
},
{ phone }
); For some reason, when the wppconnect is ran through wppconnect-server, WPP.conn.genLinkDeviceCodeForPhoneNumber does not return at all. It's weird because wppconnect by itself does return the code, so this may be a configuration issue on wppconnect-server. |
Hi, is this feature still gonna get added? |
did you manage to find a solution to the problem? This is the only way getting the code works
|
if you delete this
then everything works |
i made a PR #1959 |
Implemented by @Saifallak in PR #1959 |
How do I display the code, in start-session? |
Hi was this solved how can I implement it? |
wppconnect-team/wppconnect#2031
The text was updated successfully, but these errors were encountered: