# What is the minimum required login flow to be able to unlock EOS Achievements? 

**URL:** <https://forums.unrealengine.com/t/what-is-the-minimum-required-login-flow-to-be-able-to-unlock-eos-achievements/2858360>\
**Category:** Multiplayer\
**Tags:** epic-online-services, question\
**Created:** [August 12, 2025, 1:53pm UTC](https://forums.unrealengine.com/t/what-is-the-minimum-required-login-flow-to-be-able-to-unlock-eos-achievements/2858360 "2025-08-12T13:53:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 12, 2025, 1:53pm UTC](https://forums.unrealengine.com/t/what-is-the-minimum-required-login-flow-to-be-able-to-unlock-eos-achievements/2858360/1 "2025-08-12T13:53:58Z")

</div>

Hi, I’m using the latest version of _eos\_plugin\_for\_unity_ (4.0.2) in Unity 2022.3.60f1 on Windows and I’m struggling to get a login setup that allows me to unlock EOS Achievements.

I’m currently doing the following (simplified code below).

From what I’ve seen in the samples this should be correct, right? Do I need to login with the connect interface or can I do it some way with the auth interface only? Also, is it required to handle auth expiration?

```auto
private void BeginLogin() {
  var args = EOSManager.EOSSingleton.GetCommandLineArgsFromEpicLauncher();
  var credentialType = LoginCredentialType.ExchangeCode;
  if (string.IsNullOrEmpty(args.epicUserID) || string.IsNullOrEmpty(args.authPassword)) {
    credentialType = EOS_AUTH.LoginCredentialType.AccountPortal;
  }
  EOSManager.Instance.StartLoginWithLoginTypeAndToken(credentialType, args.epicUserID, args.authPassword, StartLoginCallback);
}

private void StartLoginCallback(LoginCallbackInfo info) {
  if (info.ResultCode == Result.Success) {
    EOSManager.Instance.StartConnectLoginWithEpicAccount(info.LocalUserId, ConnectCallback);
  }
}

private void ConnectCallback(LoginCallbackInfo info) {
  if (connectLoginResult.ResultCode != Result.Success) {
    EOSManager.Instance.CreateConnectUserWithContinuanceToken(info.ContinuanceToken, CreateConnectUserCallback);
  }
}

private void CreateConnectUserCallback(CreateUserCallbackInfo info) {
  if (info.ResultCode != Result.Success) {
    var localUserId = EOSManager.Instance.GetLocalUserId();
    EOSManager.Instance.StartConnectLoginWithEpicAccount(localUserId, NewUserConnectCallback);
  }
}

private void NewUserConnectCallback(LoginCallbackInfo info) {
  if (info.ResultCode == Result.Success) {
    _loggedIn = true;
  }
}

```

---

<div class="post-metadata">

**Author:** ![itho](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/itho/32/1130265_2.png) [@itho](https://forums.unrealengine.com/u/itho)\
**Post date:** [August 13, 2025, 9:32am UTC](https://forums.unrealengine.com/t/what-is-the-minimum-required-login-flow-to-be-able-to-unlock-eos-achievements/2858360/2 "2025-08-13T09:32:12Z")

</div>

As Epic Online Services is identity provider agnostic, you must perform this two-step login operation to authenticate the Epic account (_EOS\_Auth\_Login_) and then log in to the EOS backend (_EOS\_Connect\_Login_).

This is the same two-step process you would need when running on another platform: first, acquire the platform access token, then use this to log into EOS.

When launching from the Epic Games Launcher, the Exchange Code is available as a launch argument to make the _EOS\_Auth\_Login_ seamless and silent to the player.

The code you provided above looks correct. Could you please ensure that the SDK logging is enabled, and share the errors that you’re running into?

Please feel free to create a private discussion to share these to avoid the need for redacting any private information.
