MojangAuthPython is a lib for mojang authentification.
Project description
MojangAuth-Python
A lib for mojang authentification.
Made with
Examples
Simple Authentification :
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.auth("email", "password")
access_token = mojang_auth.access_token #str : return access token
client_token = mojang_auth.client_token #str : return client token
profile = mojang_auth.profile #list : return selected profile
username = mojang_auth.username #str : return username
id = mojang_auth.id #str : return id
Refresh Token :
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.refresh("access token", "client token")
Validate Token :
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.validate("access token", "client token") #return True if token is good and False if not
Invalidate Token :
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.invalidate("access token", "client token") #invalide token and return True if token is good and False if not
Signout :
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.signout("email", "password") #signout user and return True if user successfully signout and False if not
Author
License
DiscordBotPihole | Mozilla Public License 2.0
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
MojangAuthPython-0.1.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for MojangAuthPython-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c0e7a99b74ca66f6ad17ea8d60a957f8281a7b56747bcf3b948613abab16770 |
|
MD5 | bf7816e02d7d9d72c372318610231c52 |
|
BLAKE2b-256 | facf363676163752e1ea3d92dea3734e76d2b303b8b0c58f387fe7b5fe0bed97 |