> For the complete documentation index, see [llms.txt](https://assetstore.snapchatkit.voxelbusters.com/tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.snapchatkit.voxelbusters.com/tutorials/api/untitled.md).

# Login & Logout

### Login Status

Check if user is already logged into Snapchat service. This returns true if user is already logged in and you don't need to login again.

```csharp
using VoxelBusters.SnapchatKit;

public void IsLoggedIn()
{
    bool isLoggedIn  =  SnapchatKitManager.IsLoggedIn();
    string message  = isLoggedIn ? "User logged in!" : "User not logged in yet!";
    Debug.Log(message);
}
```

### Login

This opens Snapchat app and asks user to allow access. Capture the login status in the callback.

```csharp
using VoxelBusters.SnapchatKit;

public void Login()
{
    SnapchatKitManager.Login(OnLoginComplete);
}

private  void  OnLoginComplete(bool  success,  string  error)  
{  
    string  message  =  success  ?  "Successfully  Logged  In"  :  "Failed  Logged  In  :  "  +  error;  
    Debug.Log(message);  
}
```

### Logout

This logouts from the snapchat service. Post this operation until you login, you can share any content.

```csharp
using VoxelBusters.SnapchatKit;

public void Logout()
{
    SnapchatKitManager.Logout(OnLogoutComplete);
}

private  void  OnLogoutComplete(bool  success,  string  error)  
{  
    string  message  =  success  ?  "Successfully  Logged  Out"  :  "Failed  Logged  Out  :  "  +  error;  
    Log(message);  
}
```

{% embed url="<https://www.youtube.com/watch?v=Wo6PSLHW3po?start=4&end=17>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.snapchatkit.voxelbusters.com/tutorials/api/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
