Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teaishealthy/discord_remote_auth
https://github.com/teaishealthy/discord_remote_auth
discord discord-gateway encryption gateway python remote-auth websockets
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/teaishealthy/discord_remote_auth
- Owner: teaishealthy
- License: mit
- Created: 2022-07-25T21:53:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T18:13:29.000Z (about 2 years ago)
- Last Synced: 2024-10-16T15:04:35.694Z (2 months ago)
- Topics: discord, discord-gateway, encryption, gateway, python, remote-auth, websockets
- Language: Python
- Homepage: https://dra.teaishealthy.me
- Size: 36.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
discord_remote_auth
===================Installation
~~~~~~~~~~~~``discord_remote_auth`` is currently not available on pip, to install it run
.. code-block:: bash
$ pip install git+https://github.com/teaishealthy/discord_remote_auth
Example
~~~~~~~
.. code-block:: pyimport asyncio
import webbrowserfrom discord_remote_auth import RemoteAuth, PendingRemoteInit
auth = RemoteAuth()
@auth.pending_remote_init
async def pending_remote_init(fingerprint: PendingRemoteInit):
# Scan this with your phone
webbrowser.open(
f"https://api.qrserver.com/v1/create-qr-code/?data=https://discord.com/ra/{fingerprint['fingerprint']}"
)@auth.finish
async def finish(token: str):
print(token) # Either get the token here or# here
token = asyncio.run(auth.auth())This example will open your default webbrowser and show you a QR code to scan with your phone,
once you have scanned the code, the access token will be printed.Credits
~~~~~~~Luna for the `unofficial-api-docs `_
Vap0r1ze for ``_ which has helped as a reference for discord's encryption