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.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file discord_passport-0.2.tar.gz.

File metadata

  • Download URL: discord_passport-0.2.tar.gz
  • Upload date:
  • Size: 3.1 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

Hashes for discord_passport-0.2.tar.gz
Algorithm Hash digest
SHA256 a04242a94aeb69eab6dc9525f42a9938f5dd98557de04fd475da02963d126729
MD5 48f0774d17068ca0222e03d70ad5dd78
BLAKE2b-256 791ffcaadc2de1ba3abb8c3587b3d93b0d0be920332fb070cf2af1c3854c342c

See more details on using hashes here.

Provenance

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