I have an electron application that authenticates through Steamworks with Steamworks.js. I want to pass this authentication to Appwrite somehow.
My thought was to use the Steam session token and pass it to Appwrite as a JWT token
appwrite.account.createJWT({ authTicket })
and then also double check the authentication via the steam API for extra security
const { data } = await axios.get('https://partner.steam-api.com/ISteamUserAuth/AuthenticateUserTicket/v1', {
params: {
appid: parseInt(process.env.STEAM_APP_ID ?? '0'),
key: process.env.STEAM_WEBAPI_KEY,
ticket,
},
});
if (!(data?.response?.params?.steamid ?? '').length) {
throw new Error('no steamid found');
}
Would something like this work? If not, is there a way I can authenticate someone with the steam session token or steam user ID?
Recommended threads
- Unable to change auth email "preview" me...
Unfortunately I have not been able to change the initial sentence in the auth emails with custom smtp added in Appwrite. They are not included in the editable t...
- Customize phone otp template
Hii..is there any way to customize phone otp template in 1.8 self hosted version? Also may i know where is the phone otp message template so that i can apply fo...
- Missing scope after OAuth login
I want to get the current user with account.get after an OAuth login like Google but I always GET https://cloud.appwrite.io/v1/account 401 (Unauthorized) User (...