diff --git a/app/routes/mission-board._index.tsx b/app/routes/mission-board._index.tsx index 6edafe7..f88d4fa 100644 --- a/app/routes/mission-board._index.tsx +++ b/app/routes/mission-board._index.tsx @@ -100,6 +100,7 @@ export async function loader({ request }: LoaderFunctionArgs) { )}_header`, ) : null, + missionGiver: mission.missionGiver, } }) .filter(Boolean) diff --git a/darktide.yml b/darktide.yml index 8c86c05..a2265f9 100644 --- a/darktide.yml +++ b/darktide.yml @@ -121,7 +121,8 @@ globals: Backend.AUTH_METHOD_STEAM: any: true Steam.retrieve_auth_session_ticket: - args: [] + args: + - type: string Steam.poll_auth_session_ticket: args: - type: number diff --git a/mods/DTAuth/scripts/mods/DTAuth/DTAuth.lua b/mods/DTAuth/scripts/mods/DTAuth/DTAuth.lua index b34b817..008fb28 100644 --- a/mods/DTAuth/scripts/mods/DTAuth/DTAuth.lua +++ b/mods/DTAuth/scripts/mods/DTAuth/DTAuth.lua @@ -9,6 +9,10 @@ mod:command("login", "Open the https://darkti.de/login page in your browser", fu Application.open_url_in_browser(domain .. "/login") end) +mod:command("auth", "Attempt to authenticate the Darkti.de server with your account", function() + mod.start_authentication() +end) + function mod.start_authentication() Managers.event:unregister(mod, "event_player_authenticated", "start_authentication") @@ -46,13 +50,14 @@ function mod.authenticate_steam() else mod:info("Failed with unknown error") end + mod:echo("failed fetch") end) end getHasToken():next(function(data) if data and data.body and data.body.hasToken == false then mod:echo("Authenticating...") - local id = Steam.retrieve_auth_session_ticket() + local id = Steam.retrieve_auth_session_ticket("AzurePlayFab") mod.update = function() local app_ticket = Steam.poll_auth_session_ticket(id) if app_ticket then