Code Monkey home page Code Monkey logo

discord-oauth's Introduction

Discord Oauth2 Example

The methods was taken from Dank Memer Rewrite Website but this code is simplified only for the oauth2 codes. The design is completlely different , just the methods.

.env

COOKIE_SECRET= COOKIE_SECRET
CLIENT_ID= DISCORD CLIENT ID
CLIENT_SECRET= DISCORD CLIENT SECRET
CRYPT_KEYS= Array of crypt keys [2]
DOMAIN=http://localhost:3000 // Or the website domain
MONGODB_URI= MONGODB URI
MONGODB_DB= MONGODB COLLECTION NAME < ANY NAME >
REDIS_PORT=6379
REDIS_HOST=localhost
  • Generating CRYPT_KEYS =
node -p "[ 32, 16 ].map(n => crypto.randomBytes(n).toString('base64'))"
  • Cookie Secret ( At leat 32 characters long. )

Written By

UnusualAbsurd

Method Authors

  • Ronin - Initial work - TheCyberRonin
  • Mel - Initial design - Melmsie
  • Aetheryx - Basically the whole thing - Aetheryx
  • InBlue - Taken over work for redesign - InBlue
  • Badosz - Rewrite and feedback page - badosz0

discord-oauth's People

Contributors

unusualabsurd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

discord-oauth's Issues

Redis

You arent using redis any where then why requesting redis creds?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.