RogueRiftWalker
RogueRiftWalker
DIAdiscord.js - Imagine an app
Created by RogueRiftWalker on 5/24/2024 in #djs-questions
Help with OAuth
Hey, im trying to get oauth working but i cannot figure out whats gone wrong. im using html and php to do this but i think ive done something wrong somewhere. HTML code: https://pastebin.com/vtziBY47 JS code: https://pastebin.com/HSjpmrTn PHP code: https://pastebin.com/d18rkuJj and i get this when i press authorize on the discord login page
<br />
<b>Warning</b>: Undefined array key "access_token" in <b>/var/www/landing/php/oauth.php</b> on line <b>31</b><br />
<br />
<b>Warning</b>: Undefined array key "username" in <b>/var/www/landing/php/oauth.php</b> on line <b>49</b><br />
<br />
<b>Warning</b>: Undefined array key "id" in <b>/var/www/landing/php/oauth.php</b> on line <b>50</b><br />
{"username":null,"id":null}
<br />
<b>Warning</b>: Undefined array key "access_token" in <b>/var/www/landing/php/oauth.php</b> on line <b>31</b><br />
<br />
<b>Warning</b>: Undefined array key "username" in <b>/var/www/landing/php/oauth.php</b> on line <b>49</b><br />
<br />
<b>Warning</b>: Undefined array key "id" in <b>/var/www/landing/php/oauth.php</b> on line <b>50</b><br />
{"username":null,"id":null}
i honestly dont know what i could've done wrong
6 replies