Skip to content

Commit

Permalink
[FIX] RequestQRCode POST param encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ktx-mega committed Jul 26, 2024
1 parent 9e6b0ed commit b08f4f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kinetix_mod/server/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ function RequestQRCode(userId, callback)
local tokenRoute = '/v1/process/token'
-- You can attach arbitrary metadata that will be associated to the process.
-- This can be used for example to setup animation flags
local metadata = {}
local metadata = json.encode({
-- insert metadata here
})
PerformHttpRequest(url .. tokenRoute .. '?userId=' .. userId, function(statusCode, response, responseHeaders)
local responseObject = json.decode(response)
callback(statusCode, responseObject?.url)
Expand Down

0 comments on commit b08f4f9

Please sign in to comment.