Originally Posted by
Killgrave
Same Method for any dead by daylight platform, you just need an SSL Bypass for it to work on steam
Code:
const SteamUser = require('steam-user');
const fetch = require('node-fetch');
const cookie = require('cookie');
var ticketID = ""
const steamUser = new SteamUser();
steamUser.logOn({ accountName: 'your username', password: 'your password' });
steamUser.on('loggedOn', function() {
steamUser.setPersona(SteamUser.EPersonaState.Online);
steamUser.createAuthSessionTicket(381210, (err, ticket) => {
if (err) {
console.error('Error creating auth session ticket:', err);
return;
}
const hexTicket = ticket.toString('hex');
ticketID = hexTicket;
steamUser.logOff()
});
});
steamUser.on('disconnected', function() {
const url = 'https://steam.live.bhvrdbd.com/api/v1/auth/provider/steam/loginWithTokenBody';
const headers = {
'Accept': '*/*',
'Accept-Encoding': 'deflate, gzip',
'Content-Type': 'application/json',
};
const data = {
abortIfAlreadyLoggedInUnifiedAccount: false,
clientData: {},
token: ticketID.toString()
};
fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(data)
})
.then(response => {
const setCookieHeader = response.headers.raw()['set-cookie'];
if (setCookieHeader) {
const bhvrSessionCookie = setCookieHeader.find(cookieString => {
const parsedCookie = cookie.parse(cookieString);
return parsedCookie.bhvrSession;
});
if (bhvrSessionCookie) {
const parsedCookie = cookie.parse(bhvrSessionCookie);
console.log('bhvrSession:', parsedCookie.bhvrSession);
} else {
console.log('bhvrSession not found');
}
} else {
console.log('error');
}
})
.catch(error => {
console.error('error:', error);
});
});
you can also use this node script then you dont need a ssl bypass