Skip to content

Commit

Permalink
Changed name exposed for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
MushAsterion committed Apr 27, 2024
1 parent bb13a9a commit 85dceae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export default function Home() {
body: JSON.stringify({ code })
}).then(r => r.json());

window.auth = await discordSdk.commands.authenticate({ access_token });
window.discordSdkAuth = await discordSdk.commands.authenticate({ access_token });

if (!window.auth) {
if (!window.discordSdkAuth) {
throw new Error('Authenticate command failed');
}

Expand Down

0 comments on commit 85dceae

Please sign in to comment.