-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary indent from exaple code in docs
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,15 +227,15 @@ This method of authentication doesn't require any special app registrations, how | |
as you need to enter your login and password directly. | ||
|
||
```python | ||
import httpx | ||
from mcproto.auth.yggdrasil import YggdrasilAccount | ||
import httpx | ||
from mcproto.auth.yggdrasil import YggdrasilAccount | ||
|
||
LOGIN = "[email protected]" | ||
PASSWORD = "my_password" | ||
LOGIN = "[email protected]" | ||
PASSWORD = "my_password" | ||
|
||
async def authenticate() -> YggdrasilAccount: | ||
async with httpx.AsyncClient() as client: | ||
return YggdrasilAccount.authenticate(client, login=LOGIN, password=PASSWORD) | ||
async def authenticate() -> YggdrasilAccount: | ||
async with httpx.AsyncClient() as client: | ||
return YggdrasilAccount.authenticate(client, login=LOGIN, password=PASSWORD) | ||
``` | ||
|
||
The Account instance you will obtain here will contain a refresh token, and a shorter lived access token, received from | ||
|