This guide will walk you through integrating Argus Auth into your World Engine game client. Argus Auth provides secure, seamless authentication that works perfectly with multiplayer games.Documentation Index
Fetch the complete documentation index at: https://world.dev/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have completed the Quickstart guide.Sign in with Argus ID
Checking authentication state
Useworld.auth.getUser() to get the current user. If this is your first time using Argus Auth,
this will return null. You’d normally do this in the main menu of your game.
Main Menu
getUser() method returns either:
- An
AuthUserobject if the user is authenticated nullif no user is currently signed in
What's in the AuthUser object?
What's in the AuthUser object?
The
AuthUser object contains user information from Argus Auth:Signing in
The following example shows how to sign in if no user is found. This is a simple example, on your game you might want to show a button to sign in.Main Menu
Handling User Logout
Use thelogout() method to sign out the current user:
Logout
Next Steps
Now that you have authentication set up, you’re ready to learn about another World Engine concept: Subscribe Events.Subscribe Events
Learn how to subscribe to events in World Engine