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

# How to Login

{% hint style="warning" %}
Login is required to remove any restrictions on certain endpoints.
{% endhint %}

**SSO Authentication**

```javascript
import { login } from "call-of-duty-api";
login(ssoToken: string);
// or alternatively
import API from "call-of-duty-api";
API.login(ssoToken: string);
```
