Skip to content

Commit

Permalink
Remove unnecessary indent from exaple code in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Oct 22, 2024
1 parent bcb770b commit 31de9ff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/usage/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31de9ff

Please sign in to comment.