Skip to content

Commit

Permalink
add mission giver to mission board list
Browse files Browse the repository at this point in the history
  • Loading branch information
danreeves committed Jan 16, 2024
1 parent 87b9fe2 commit d6d1030
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/routes/mission-board._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
)}_header`,
)
: null,
missionGiver: mission.missionGiver,
}
})
.filter(Boolean)
Expand Down
3 changes: 2 additions & 1 deletion darktide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion mods/DTAuth/scripts/mods/DTAuth/DTAuth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6d1030

Please sign in to comment.