
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
- Appwrite Sites and localStorage Problem ...
I'm currently struggling with the localStorage Problem and Custom Sites. My goal is to move our Flutter Web App to Appwrite Sites. When just deploying it I'm ...
- Getting 413 Payload too large when calli...
Hi, I have a self hosted v. 1.7.4 instance behind a reverse proxy and it is actually working well. But when I call: ```dart await account.deleteSession('curre...
- Unable to Access Project Dashboard After...
I’m currently working on a team project using Appwrite and ran into an issue accessing my project dashboard. After clearing cookies and cache, I attempted to lo...
