Skip to content

Instantly share code, notes, and snippets.

@Chriss4123
Chriss4123 / discordoauth.php
Last active June 11, 2022 15:43
Discord OAUTH2 With PHP
// I made this OAUTH as the other ones on GitHub weren't working for me. Make sure to replace all the
// necessarry fields with your information.
// To trigger the OAUTH, go to yoursite.com/filenameordir.php?login
// If you want to make the login trigger parameters different, change the if ($_GET['login']) to whatever parameters you want.
// NOTE YOU MUST HAVE cURL installed. If it isn't already (it should be), search it up.
<?php
$urlbuild = array(