floxay / python-riot-auth

A Python 3 library to get various Riot tokens and get around Cloudflare's filter during auth.
MIT License
71 stars 14 forks source link

Support for 2-fa #4

Closed typhonshambo closed 1 year ago

typhonshambo commented 2 years ago

The auth gives error when the account have 2fa enabled!

physanus commented 1 year ago

I'm also very interested in 2fa support, is there any chance this gets implemented? (@floxay)

musnows commented 1 year ago

I modify code from Prodzify/Riot-auth, transfering requests.session.cookie to aiohttp _cookie_jar, now 2fa is supported login and cookie reauth with python-riot-auth

https://github.com/Aewait/Kook-Valorant-Bot/blob/main/code/endpoints/EzAuth.py

you can see example at

when EzAuth object get token successful, you could get RiotAuth object by EzAuth.get_RiotAuth()

https://github.com/Aewait/Kook-Valorant-Bot/blob/937206e3f3849bae06d1636815aade2421a0e1b3/code/endpoints/EzAuth.py#L219-L235