luasteam icon indicating copy to clipboard operation
luasteam copied to clipboard

Add support for GetAuthTicketForWebApi

Open rnels opened this issue 7 months ago • 0 comments

Motivation

Currently, it isn't possible to authenticate a steam user with a backend web server. Adding the function GetAuthTicketForWebApi and its associated callback handler GetTicketForWebApiResponse_t allows us to do so.

Changes

  • Added init_user and shutdown_user to core.cpp
    • Seems like these were omitted by mistake, preventing the user.cpp callback handlers from registering
  • Added user.getAuthTicketForWebApi method and OnTicketForWebApiResponse callback handler

This is my first time writing C++, so please let me know if you have any suggestions for improving my code. Also let me know if there are any additional requirements for contribution I've missed.

rnels avatar Jul 17 '24 23:07 rnels