API ReferenceSandbox.Services
public static abstract sealed class Sandbox.Services.Auth
Related Guides
Broader workflow and conceptual references connected to this API.
Auth Tokens
If you are using HTTP requests or WebSockets in your game, you can use Auth Tokens to validate that the requests were sent from a valid Steam user in a s&box game session. This is useful if you want to tie data to a specific Steam account, or prevent botting.
WebSockets
s&box allows you to use WebSockets to interface with an external server. Common usages include custom networking, or persistent data outside of a local filesystem.
Methods
Showing 1 methods
public static System.Threading.Tasks.Task`1<string> GetToken(string serviceName, System.Threading.CancellationToken token = null)
Get an auth token, which can be passed to the backend
Parameters
token: Default: null
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Services |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Services.Auth |