---
updatedAt: 2025-11-11T15:57:18.000Z
agentTools:
  projectIndex: https://beamable2.readme.io/llms.txt
---

# 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. It will create a user and log them in with Beamable specifically for the current device.

The `PlayerAccount` contains the player's gamer tag, their alias, and any other third party credentials that may be associated with the player.

```csharp SilentLogin.cs
using Beamable;
using Beamable.Player;

public class SilentLogin 
{
    private BeamContext _beamContext;
    public PlayerAccount account;

    private async void Start()
    {
        _beamContext = BeamContext.Default;
        await _beamContext.OnReady;
        await _beamContext.Accounts.OnReady;
        account = _beamContext.Accounts.Current;
    }
}
```

<HTMLBlock>{`
<style>
  .links {
    padding: 0 1em 1em 0;
    display: flex;
    flex-flow: row wrap;
  }

  .link {
    margin-right: 2em;
    padding: 0.3em 1.5em;
    box-sizing: border-box;
  }

  .active {
    border: 1px solid #4274f6;
    background-color: #4274f6;
    color: white;
  }

  .normal {
    background-color: white;
    border: 1px solid gray;
    cursor:pointer;
    text-decoration: none;
  }

  .normal:active {
    background-color: #c4d4ff;
  }

  .normal:hover {
    background-color: #c4d4ff;
  }

  .active:active {
    color: white;
  }

  .active:hover {
    color: white;
  }
  
  ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
  }
  ul.breadcrumb li {
    display: inline;
    font-size: 18px;
  }
  ul.breadcrumb li+li:before {
    padding: 8px;
    color: black;
    content: "/\\00a0";
  }
  ul.breadcrumb li a {
    color: #0275d8;
    text-decoration: none;
  }
  ul.breadcrumb li a:hover {
    color: #01447e;
    text-decoration: underline;
  }
  
     @media only screen and (max-width:700px){
 		    ul.breadcrumb {
    padding-top:0;
          padding-left:0;
  }
      
  .link {
    margin-right: 1em;
         margin-bottom:1em;
  }
  }
</style>
`}</HTMLBlock>