API Reference#
RemoteAuth#
- class discord_remote_auth.RemoteAuth#
The RemoteAuth object, handles connecting to the remote auth gateway
- await auth() Optional[str] #
Run the full authentication process and return the access token
- Returns:
The access token if successful, None otherwise
- Return type:
Optional[str]
- @hello(self, coroutine)#
Register an coroutine for the hello event handler
- Annotation:
- @nonce_proof(self, coroutine)#
Register an coroutine for the nonce_proof event handler
- Annotation:
- @pending_remote_init(self, coroutine)#
Register an coroutine for the hello event handler
- Annotation:
- @pending_finish(self, coroutine)#
Register an coroutine for the pending_finish event handler
- Annotation:
- @finish(self, coroutine)#
Register an coroutine for the finish event handler
- Annotation:
- @cancel(self, coroutine)#
Register an coroutine for the cancel event handler
- Annotation:
Types#
- class discord_remote_auth.types.Hello#
- class discord_remote_auth.types.PendingRemoteInit#
- class discord_remote_auth.types.PendingFinish#