For the complete documentation index, see llms.txt. This page is also available as Markdown.

User

Get User Information

PRIVATE

This endpoint allows to to get the information about the current user.

import { ReneSDK } from '@reneverse/game-sdk';

const reneSdk = new ReneSDK({
  privateKey: '<YOUR PRIVATE KEY>',
  apiKey: '<YOUR API KEY>'
});

const main = async () => {
  const connectResponse = await reneSdk.connect('<EMAIL OF THE USER>');
  const isConnected = await connectResponse.game.waitForGameConnect();

  const user = await connectResponse.user.getUser();
  console.log(user);
}

main()

Last updated