MLH-Fellowship / fellow-central

Earn points for yourself and your pod during the MLH Fellowship. Make your activities and participation count.
https://leagueoffellow.netlify.app/
MIT License
6 stars 1 forks source link

added discord oauth and callback #19

Closed boyuan12 closed 3 years ago

boyuan12 commented 3 years ago

Description

Please include a summary of the change and which issue is fixed. Added Discord OAuth and callback. Access token are stored in the user's session. Discord client ID and secret are stored in environment variables. All field needed for the User model are stored in appropriate variables: email, username, discriminator (the 4-digit number after the Discord username), discord_id, in_fellowship (boolean, True if user is in fellowship server, false otherwise.)

Please also include relevant motivation and context. Discord OAuth

List any dependencies that are required for this change. requests

Fixes # (issue) fixed #11

Type of change

Please delete options that are not relevant.

Checklist:

Screenshots

N/A

welcome[bot] commented 3 years ago

Thanks so much for opening your first PR here!

gitpod-io[bot] commented 3 years ago

welcome[bot] commented 3 years ago

Congrats on merging your first pull request here! :tada: How awesome!