MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / refresh

Method refresh

service/esiAccess.py:200–211  ·  view source on GitHub ↗
(self, ssoChar)

Source from the content-addressed store, hash-verified

198 return json_res, decoded_jwt
199
200 def refresh(self, ssoChar):
201 # todo: properly handle invalid refresh token
202 values = {
203 "grant_type": "refresh_token",
204 "refresh_token": config.cipher.decrypt(ssoChar.refreshToken).decode(),
205 "client_id": self.client_id,
206 }
207
208 res = self.token_call(values)
209 json_res = res.json()
210 self.update_token(ssoChar, json_res)
211 return json_res
212
213 def token_call(self, values):
214 headers = {

Callers 3

_before_requestMethod · 0.95
runMethod · 0.45
deleteFitMethod · 0.45

Calls 2

token_callMethod · 0.95
update_tokenMethod · 0.95

Tested by

no test coverage detected