Skip to main content

discord-passport is easier way to create simple Oauth with Discord-API

Project description

Discord-Passport v0.1

Way to make simple Discord OAuth2

How it work?

+pip install discord-passport

Make the Auth

import discord_passport as dp

Oauth = dp.Oauth2(token="Bot Token",client_secret="Bot Client Secret ",client_id="Bot ID",redirect_uri="Oauth Redirect URL")




Oauth.OAuth2Code("Code from OAuth2Code")

print(Oauth.getUserAvatar) # Return AvatarLink 

print(Oauth.getUserName) # Return Name Like iExi

print(Oauth.getUserDiscriminator) # Return Discriminator Like #0416

print(Oauth.getUserPremiumType) # Return PremiumTypeLike 0 1 2

"""
0:None
1:Discord Nitro Classic
2:Discord Nitro Gaming 
"""

print(Oauth.getUserEmail) # Return Email like email@iexi.xyz

print(Oauth.getUserFlags) # https://discord.com/developers/docs/resources/user#user-object-user-flags

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord_passport-0.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page