How to authenticate EOS (Epic Online Services) users with UGS OpenID connect?

Hi I’m trying to authenticate Epic Games store users with my UGS setup for a Standalone_Windows build (UGS: Economy and CCD for addressables) This doc mentions using the OpenID api should work with EOS specifically.
https://docs.unity.com/ugs/manual/authentication/manual/openid-connect

Currently I’m successfully authenticating with EOS directly using their Persistent Auth mode, and seeing the correct ClientID and AccountID being reported in the editor log. However, when I then try to authenticate with UGS using

AuthenticationService.Instance.SignInWithOpenIdConnectAsync(openIDProviderName, Token);

it is failing with a message of:

[Authentication]: Request failed: 401, {"title":"PERMISSION_DENIED","detail":"validation failed","details":[ ],"status":401},

I know the openIDProviderName is correct because I previously had that wrong and corrected it. But I don’t know what I should be passing to this call as the Token from the EOS callback. I am currently passing an EpicAccountId called SelectedAccountId from their LoginCallbackInfo, but clearly that’s incorrect. I don’t see any other mention on EOS or Unity docs of what string to pass along as that token for OpenID to work… any suggestions?

Update: I solved this problem, thanks to stumbling across someone else’s very helpful github post (at Epic Game SDK Unity Integration · GitHub)

AuthInterface auth = EOSManager.Instance.GetEOSAuthInterface();
if (null == auth)
{
Debug.LogError($"[Auth] Unable to GetEOSAuthInterface, is EOSManager present?");
OnEOSLoginFailed();
return;
}

CopyIdTokenOptions options = new CopyIdTokenOptions();
options.AccountId = selectedAccountId; // from loginCallbackInfo.SelectedAccountId;
Result result = auth.CopyIdToken(ref options, out localToken);
if (result != Result.Success)
{
Debug.LogError($"[Auth] Error copying ID token: [{result}]");
OnEOSLoginFailed();
return;
}

await AuthenticationService.Instance.SignInWithOpenIdConnectAsync(openIDProviderName, localToken?.JsonWebToken);

Debug.Log($"[AuthenticationManager] ... Sign In Success! PlayerID: {AuthenticationService.Instance.PlayerId}"); //Display the Unity Authentication PlayerID```

What did you put in OIDC Issuer (URL)? I am getting "Request failed: 401, {"detail":"invalid issuer","details":[],"status":401,"title":"PERMISSION_DENIED"}"

use this OIDC Issuer (URL) for Epic Online Services: https://api.epicgames.dev/epic/oauth/v1