# Variables

{% hint style="info" %}
Variables make your program very secure and we highly recommend that you make use of them
{% endhint %}

The server sided variables store your strings server-sided. This makes it so your application can call them from the server after a successful login with one function. This is an exclusive feature to Auth.GG and it protects your strings from being decompiled and is a major security improvement.

Read our article on Forbes for more information.

**Initial Setup:**

{% code title="C#" %}

```csharp
/* Argument in order: variable secret key */
/* Username and password is required as the user must be logged in to retrieve variables */
string variable1 = App.GrabVariable("PutVariableSecretHere");
```

{% endcode %}

{% hint style="info" %}
All variables called from the GrabVariable method are returned as strings and must be converted back to their original data type by you (unless the variable is a string) e.g.&#x20;

Convert.ToInt32(App.GrabVariable("putvariablesecrethere"));
{% endhint %}


---

# Agent Instructions: 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://setup.auth.gg/setting-up/variables.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.
