We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f140122 commit 6082eeeCopy full SHA for 6082eee
1 file changed
src/Classes/PoEAPI.lua
@@ -25,10 +25,10 @@ end)
25
26
--- @param callback fun(valid: bool, updateSettings: bool)
27
function PoEAPIClass:ValidateAuth(callback)
28
- ConPrintf("Validating auth token")
29
-- make a call for profile if not error we are good
30
-- if error 401 then try to recreate the token with
31
if self.authToken and self.refreshToken and self.tokenExpiry then
+ ConPrintf("Validating auth token")
32
if self.tokenExpiry < os.time() then
33
ConPrintf("Auth token expired")
34
-- here recreate the token with the refresh_token
0 commit comments