modio / modio-unity

Unity Engine Plugin for easily integrating mod.io into your game - the UGC management service for game developers
https://mod.io
MIT License
28 stars 7 forks source link

AuthenticateUserViaEpic uses Steam argument instead of Epic #3

Open NickPApogee opened 9 months ago

NickPApogee commented 9 months ago

Hi, please see this line: https://github.com/modio/modio-unity/blob/bb4ca29438d4cf2441107c9618587c18e794477f/Runtime/ModIOUnityAsync.cs#L304C41-L304C41

This is the Epic authentication method AuthenticateUserViaEpic, yet it seems to be trying to use Steam! It should use AuthenticationServiceProvider.Epic instead of AuthenticationServiceProvider.Steam.

Feeding in a token acquired from an Epic login, I was getting an "UnprocessableEntity" error until I changed this, after which it returned a successful result.