Frictionless - Code
Simple code-only authentication [IDEN-Frictionless-03]
Below is the easiest and quickest way to provide authentication with Beamable. However, the following does not provide any cross-platform support and will create a user and log them in with Beamable specifically for the current device.
using Beamable;
public class SilentLogin
{
private BeamContext _beamContext;
private async void Start()
{
_beamContext = BeamContext.Default;
await _beamContext.OnReady;
Debug.Log($"beamContext.PlayerId = {_beamContext.PlayerId}");
}
}
Updated about 1 month ago
Did this page help you?