We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55e36e1 commit c82fad0Copy full SHA for c82fad0
1 file changed
src/Classes/PoEAPI.lua
@@ -80,9 +80,10 @@ function PoEAPIClass:FetchAuthToken(callback)
80
if id then
81
launch.subScripts[id] = {
82
type = "DOWNLOAD",
83
- callback = function(code, state, port)
+ callback = function(response, errMsg)
84
+ local code, state, port = unpack(response or {})
85
if not code then
- ConPrintf("Failed to get code from server")
86
+ ConPrintf("Failed to get code from server: %s", errMsg)
87
self.authToken = nil
88
self.refreshToken = nil
89
self.tokenExpiry = nil
0 commit comments