EOS (Epic Online Services): InvalidParameters on ExternalAuth using Connect Interface

I am using EOS Game Services to log in with Google by using Connect Interface without any Epic Account and create users with my Unity Project. The reason why I’m doing this is to create a mobile game/app and register some players over there and if they like, I want to connect them to the game on Epic.

(I’ve selected only the “Connect” feature in the Client Policy. Added Google as an Identity Provider and selected it in the Sandbox Identity Providers. Created an Application in Epic Account Services and linked it with the Client that I’ve created)

I’ve added the SDK to my Unity Project and I filled the necessary places but the last two are empty. When I select the External Auth, I get the following errors:

Invalid parameter EOS_Auth_Credentials.Token reason: must not be null or empty (EOSSDKComponent/<>c:<Start>b__19_0 (Epic.OnlineServices.Logging.LogMessage&) (at Assets/EOSSDKComponent.cs:99))
 
Login failed: InvalidParameters (EOSSDKComponent/<>c:<Start>b__19_1 (Epic.OnlineServices.Auth.LoginCallbackInfo&) (at Assets/EOSSDKComponent.cs:140))

EOS_Inputs

var loginOptions = new LoginOptions()
{
    Credentials = new Credentials()
    {
        Type = m_LoginCredentialType,
        ExternalType = m_ExternalCredentialType,    // I also commented out this and Id, Token lines sometimes to test.
        Id = m_LoginCredentialId,
        Token = m_LoginCredentialToken
    },
    // Change these scopes to match the ones set up on your product on the Developer Portal.
 
    // NOTE: I also commented out this line sometimes to test.
    ScopeFlags = Epic.OnlineServices.Auth.AuthScopeFlags.BasicProfile | Epic.OnlineServices.Auth.AuthScopeFlags.FriendsList | Epic.OnlineServices.Auth.AuthScopeFlags.Presence
};

There was no “External Credential Type” parameter in the official SDK but I’ve added it as shown above and added it to the loginOptions. The SDK doc is here. With or without my change in the code, the result is the same.

It works well if I use AccountPortal as LoginCredentialType but AccountPortal uses the Auth Interface I assume because it always wants to link to an Epic Account or you can log in with an Epic Account.

But I just want to log in with a Google Account. What am I missing here? I appreciate your time and thanks in advance :pray:

For those who have the same problem, I have a solution here. It turned out I was using the Auth Interface function and parameters instead of Connect Interface. :grimacing: