Skip to main content

Unity authentication

The LauncherForge Unity integration reads the launch token passed to the packaged game and validates the player session.

Launch contract

The game is started with:
The integration should process this value during application startup.

Session result

The LauncherForge authentication session exposes:
The LauncherForge.LauncherAuth namespace and LauncherAuthSession state can be used by your game UI or startup logic to react to progress and results.
1

Add the integration

Import the LauncherForge Unity package into the project.
2

Initialize on startup

Place the authentication startup component in a persistent bootstrap scene or object.
3

Observe the session state

Display a loading state while the token is read and validated.
4

Accept or reject the session

Enter the protected game flow only when valid is true.

Development UI

A status panel can be limited to the Editor and Development Builds. Avoid exposing detailed authentication diagnostics in production unless they are appropriate for players.

HTTPS requirement

Use an HTTPS validation endpoint in production. Unity can reject or warn about insecure HTTP requests depending on the build and player settings.
Never embed private server credentials or administrative API keys in the Unity client.