โ Auth
How can I get Auth and Ent token?
from vbaspy.auth import RiotAuth
import asyncio
import sys
# asyncio.run() error fix
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
INFO = '๋ผ์ด์ ID','๋ผ์ด์ ๋น๋ฐ๋ฒํธ' # Your riot ID and PW (Not the ingame nickname)
auth = RiotAuth() # Create class 'RiotAuth'
asyncio.run(auth.authorize(*INFO)) # Start
# You can get 4 variables
tokentype = auth.token_type # Auth token type. It usually bearer token.
actoken = auth.access_token # Auth token.
enttoken = auth.entitlements_token # Ent token.
puuid = auth.user_id # PUUID
# Printing the results
print("Token type: " + tokentype + "\n\nAuth token : " + actoken + "\n\nENT token : " + enttoken + "\n\nPUUID : " + puuid + "\n")
# Return with bool about it succeeded
# print("result : " + str(asyncio.run(auth.reauthorize()))Last updated