Skip to main content

MojangAuth-Python

A lib for mojang authentification.

Made with

Install prerequisites

  • Execute command: pip3 install MojangAuthPython

Examples

Simple Authentification

from MojangAuth import MojangAuth

mojang_auth = MojangAuth()

mojang_auth.auth("email", "password")

access_token = mojang_auth.access_token # return access token (str)
client_token = mojang_auth.client_token # return client token (str)
profile = mojang_auth.profile # return selected profile (list)
username = mojang_auth.username # return username (str)
id = mojang_auth.id #str : return id (str)

Refresh Token

from MojangAuth import MojangAuth

mojang_auth = MojangAuth()

mojang_auth.refresh("accessToken", "clientToken")

Validate Token

from MojangAuth import MojangAuth

mojang_auth = MojangAuth()

mojang_auth.validate("accessToken", "clientToken") # return True if token is good and False if not

Invalidate Token

from MojangAuth import MojangAuth

mojang_auth = MojangAuth()

mojang_auth.invalidate("accessToken", "clientToken") # invalidated token and return True if token is good and False if not

Sign-out

from MojangAuth import MojangAuth

mojang_auth = MojangAuth()

mojang_auth.sign_out("email", "password")  # sign-out user and return True if user successfully sign-out and False if not

Author

Asthowen

License

MojangAuth-Python | Mozilla Public License 2.0

Metadata

Release files for MojangAuthPython 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MojangAuthPython 0.1.4
File Size Uploaded
MojangAuthPython-0.1.4.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MojangAuthPython 0.1.4
File Interpreter ABI Platform
MojangAuthPython-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / MojangAuthPython-0.1.4.tar.gz

Download URL MojangAuthPython-0.1.4.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
11ddf955413dc320c01336ef5418c9a4476b2bd5cabe98673800337b01a13718
BLAKE2b-256 checksum
How to use checksums
eb0923e8dfaabc723968bdcebcf0d82e0677d5189411f873deb2622d8f2aa250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / MojangAuthPython-0.1.4-py3-none-any.whl

Download URL MojangAuthPython-0.1.4-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab00771ae8cc2a3655ab9b1335ef3756e98a2e81cd8290b5a62b4e246e70457e
BLAKE2b-256 checksum
How to use checksums
90b807f529aa8ec91288abf4a032d64ebaea0cd760ebd9cd2c76c275a4f9ddf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page