# GetAuthToken()

> Returns the authentication token for the current licensing session.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Licensing](/engine/7000.0/script-reference/unityeditor/licensing.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static string GetAuthToken()
```

### Returns

| Type                                                           | Description                                                                               |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The authentication token, or an empty string if the licensing system did not provide one. |
