Skip to main content

Sign in API

The Sign in API allows you to login and logout via code.

For example, you may wish to use your own UI as part of a centralised marketing SDK.

Sign in

Luna.Replay.Api.Playground.TrySignIn(string userEmail, string userPassword,
string packageId, string applicationName);

// Default Application Name and Package ID are added from Player Settings
Luna.Replay.Api.Playground.TrySignIn(string userEmail, string userPassword);

Get sign in status

Used to get the current sign in state. Possible states: None, SigningIn, SignedIn, SignInFailed. and AppFailed.

Luna.Replay.Api.Playground.GetSignInStatus();

Validate Authentication

var isAuthenticated = await Luna.Replay.Api.Playground.ValidateAuthentication();

Sign Out

Luna.Replay.Api.Playground.SignOut();