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
- Any Error Contact me : iExi#0416
- Or enter : Developer Support
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(3.2 kB
view details)
File details
Details for the file discord_passport-0.1.tar.gz
.
File metadata
- Download URL: discord_passport-0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 569e7b79fbf4620920b4f81826c2c21d0bca061bb2e6e49130155473686dfa1f |
|
MD5 | 07d64f74f3fcc42f77fdc7901b46ea48 |
|
BLAKE2b-256 | 2e6bab8b3429bb258a6d30406c03db0267b3b5f0feae0fa7f110f05d67fe1396 |