Add discordSdk.authenticate() call to properly authenticate session
cgen-43188a35f30a4b0d93f08cbbfd8402f8
This commit is contained in:
parent
6923de3c14
commit
9e1120eb79
1 changed files with 5 additions and 0 deletions
|
|
@ -92,6 +92,11 @@ export const DiscordActivityProvider: React.FC<
|
|||
await sdk.ready();
|
||||
console.log("[Discord Activity] SDK is ready");
|
||||
|
||||
// Authenticate the session with Discord
|
||||
console.log("[Discord Activity] Authenticating session...");
|
||||
await sdk.authenticate();
|
||||
console.log("[Discord Activity] Session authenticated");
|
||||
|
||||
// Get the current user from the SDK
|
||||
const currentUser = await sdk.user.getUser();
|
||||
console.log(
|
||||
|
|
|
|||
Loading…
Reference in a new issue