luasteam
luasteam copied to clipboard
Add support for GetAuthTicketForWebApi
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
andshutdown_user
tocore.cpp
- Seems like these were omitted by mistake, preventing the
user.cpp
callback handlers from registering
- Seems like these were omitted by mistake, preventing the
- Added
user.getAuthTicketForWebApi
method andOnTicketForWebApiResponse
callback handler-
Steamworks docs for
GetAuthTicketForWebApi
-
Steamworks docs for
GetTicketForWebApiResponse_t
-
Steamworks docs for
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.