GithubHelp home page GithubHelp logo

teaishealthy / discord_remote_auth Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 37 KB

Home Page: https://dra.teaishealthy.me

License: MIT License

Python 100.00%
discord discord-gateway encryption gateway python remote-auth websockets

discord_remote_auth's Introduction

discord_remote_auth

Installation

discord_remote_auth is currently not available on pip, to install it run

$ pip install git+https://github.com/teaishealthy/discord_remote_auth

Example

import asyncio
import webbrowser

from 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 https://github.com/Vap0r1ze/discord-remote-auth which has helped as a reference for discord's encryption

discord_remote_auth's People

Contributors

teaishealthy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.