gramjs icon indicating copy to clipboard operation
gramjs copied to clipboard

QR code login session

Open fiwz opened this issue 3 years ago • 4 comments

Hello!

Thank you in advance for creating new helper for QR code login

I am changing my authentication from asking user to input phone code to QR code

But I found that I can not get user session after successfully logged in

sessionResult = client.session.save(); console.log(sessionResult) // not returning anything

I have used this method mentioned in issue #151 referenced link: https://github.com/gram-js/gramjs/issues/151#issuecomment-917132725

But the console not returning anything

Is it possible to save user session after successfully logged in?

Referenced issue: #151

Thank you

fiwz avatar Jun 09 '22 09:06 fiwz

what do you mean by "not returning anything" ? Does it log an empty string or does it not log anything?

Can you try doing the process again? sometimes it hangs and I couldn't figure out why yet.

painor avatar Jun 09 '22 11:06 painor

@fiwz yup

UxHarshit avatar Jun 09 '22 12:06 UxHarshit

what do you mean by "not returning anything" ? Does it log an empty string or does it not log anything?

Can you try doing the process again? sometimes it hangs and I couldn't figure out why yet.

Thank you for your answer

When I log the session, it does not log anything, I am not sure if it was empty string In my case, I need to save the client session

I will try to do the process again and let you know whether it works

fiwz avatar Jun 10 '22 02:06 fiwz

Here I attach my code

It is similar as on the previous issue I referred

try-telegram-auth-qr

fiwz avatar Jun 10 '22 02:06 fiwz