Skip to content

Commit

Permalink
Fix Lune cookie auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Starveldt committed Aug 7, 2024
1 parent 137fde6 commit 2fd3dea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .lune/build.luau
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ local Net = require("@lune/net")
local APPLICATION_JSON: string = "application/json"
local USER_AGENT: string = "Roblox/WinInet"

local LUNE_AUTH: string = assert(Process.env.LUNE_AUTH, "Need LUNE_AUTH env to publish Weaver")
local PUBLISH_TO: string = "18772004646"
-- Variables
local Asset: string = Filesystem.readFile("Weaver.rbxm")
local Cookie: string = assert(Process.env.LUNE_AUTH, "Need LUNE_AUTH env to publish Weaver")
local Cookie: string = `.ROBLOSECURITY={ LUNE_AUTH }`

local CSRF_Headers: { [string]: any } =
{
Expand All @@ -32,6 +33,7 @@ local CSRF_Token: string | { string } = assert(CSRF_Response.headers["x-csrf-tok
local Upload_Headers: { [string]: any } =
{
["Content-Type"] = "application/octet-stream";

["X-CSRF-Token"] = CSRF_Token;
["User-Agent"] = USER_AGENT;

Expand Down

0 comments on commit 2fd3dea

Please sign in to comment.