Skip to content

I have made a PHP script to help automate Oauth login for Discord [Login With Discord]. It contains a base and needs to be coded more to actually implement it into your website [Sessions has not beeen included, just the files to retreieve the info from the API]

Notifications You must be signed in to change notification settings

Dunkledore/discordoauth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Oauth Script - [Login With Discord, PHP]

How To use it?

It's very simple! Just add this line of code in your file : include 'discord.php`; That's it! You've successfully added the oauth script to your code!

How do I integrate it into my website

To use it, you will need a quick overview on how this script works. This is not a library, its more like a code snippet. Basically, once you include the file in your login file, you just have to call some predefined functions. This makes oauth for discord a breeze. Check below to find the documentaion on the functions and their names.

How does Oauth work?

After the user authorizes the application, a code is sent by discord to the Rediect URI. This script which is in your Reirect URI folder will grab the code sent by discord through a GET request and will POST it to the Oauth API along with your data to get an authorizaion token. This authorization token is again sent to the send to the Discord API (which depends on your required scope) to get the user data, which is then utilized by you, that is you make SESSIONS with the data you receieved.

I have more doubts as on how to use it and I want to request more functions!

Join my server and DM me - Markis™#0227 your questions and I will sort them. Feel free to request for more functions :)

Server Link : https://discord.io/ds

Documentaion Link : https://markis.pw (coming soon)

About

I have made a PHP script to help automate Oauth login for Discord [Login With Discord]. It contains a base and needs to be coded more to actually implement it into your website [Sessions has not beeen included, just the files to retreieve the info from the API]

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%