function get_user_info(token) local json = require("json") local resp, status = http.get("https://api.github.com/user", { Authorization = "Bearer " .. token }) local data = json.decode(resp) return data.login end