> For the complete documentation index, see [llms.txt](https://gley.gitbook.io/easy-achievements/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gley.gitbook.io/easy-achievements/complete-api/isloggedin.md).

# IsLoggedIn

## Description

Used to check if user is logged in.

## Declaration

```csharp
public static bool IsLoggedIn()
```

## Return

**true** -> user is logged in

**false** -> user is not logged in

## Example

```csharp
public class Test : MonoBehaviour
{
    public void IsLoggedIn()
    {
        if (Gley.GameServices.API.IsLoggedIn())
        {
            Debug.Log("Is logged in");
        }
        else
        {
            Debug.Log("Is not logged in");
        }
    }
}
```
