MCPcopy Create free account
hub / github.com/Loping151/RoverSign / refresh_bat_token

Method refresh_bat_token

RoverSign/utils/api/requests.py:65–83  ·  view source on GitHub ↗
(self, waves_user: WavesUser)

Source from the content-addressed store, hash-verified

63 return ""
64
65 async def refresh_bat_token(self, waves_user: WavesUser):
66 success, access_token = await self.get_request_token(
67 waves_user.uid,
68 waves_user.cookie,
69 waves_user.did,
70 game_id=waves_user.game_id,
71 )
72 if not success:
73 return waves_user
74
75 waves_user.bat = access_token
76 await WavesUser.update_data_by_data(
77 select_data={
78 "uid": waves_user.uid,
79 "game_id": waves_user.game_id,
80 },
81 update_data={"bat": access_token},
82 )
83 return waves_user
84
85 async def get_used_headers(
86 self,

Callers 2

get_self_waves_ckMethod · 0.95
_process_user_innerFunction · 0.80

Calls 1

get_request_tokenMethod · 0.95

Tested by

no test coverage detected