> For the complete documentation index, see [llms.txt](https://pyauthgg.xfuey.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyauthgg.xfuey.dev/application/login.md).

# Login()

| Arguments | Type   | Required | Default |
| --------- | ------ | -------- | ------- |
| Username  | String | True     |         |
| Password  | String | True     |         |

```python
import PyAuthGG

App = PyAuthGG.Application("API KEY", "AID", "SECRET_KEY")

App.Login("xFueY", "Password")
```

### Success Response

```javascript
{
   "result":"success",
   "id":"12345",
   "username":"xFueY",
   "hwid":"XXXXXXXX-XXX-XXXX-XXXX-XXXXXXXXXXXXXX",
   "email":"xFueY@mail.com",
   "uservar":"Variable",
   "rank":"0",
   "ip":"1.1.1.1",
   "expiry":"2294-03-29 15:30:41",
   "variables":{
      
   }
}
```

### Error Response

{% hint style="info" %}
For more responses, please refer to [Auth.GG's Documentation](https://setup.auth.gg/api/application-information).
{% endhint %}
