Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F #102

Open
sayoofe97 opened this issue Dec 4, 2024 · 0 comments
Open

F #102

sayoofe97 opened this issue Dec 4, 2024 · 0 comments

Comments

@sayoofe97
Copy link

const { Launcher } = require('epicgames-client');

const launcher = new Launcher({
email: 'E-MAIL',
password: 'PASSWORD',
});

(async () => {

if(!await launcher.init() || !await launcher.login()) {
throw new Error('Error while initialize or login process.');
}

const playerName = 'Kysune';
const account = await launcher.getProfile(playerName);
if(!account) throw new Error(Player ${playerName} not found!);

console.log(${account.name}'s id: ${account.id});
// "Kysune's id: 9a1d43b1d826420e9fa393a79b74b2ff"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant