Hiro in Unity with Email Authentication workflow

Hello,

are there any sample for Hiro + Unity using the email based authentication workflow? The default sample for Unity uses the Device Authentication.
When I try to use Client.AuthenticateEmailAsync, neither session or account are set in the NakamaSystem and neither is the authorizer function called. Am I missing a crucial step?

Heya!

Just to clarify, have you tested the Hiro + Unity device authentication first to see if that works? Or did you start with email based?

Best,
Nathan

Hi,

I started with email authentication as this was the previous worfklow from the pure nakama implementation.
I will test hiro with the device authentication to see if that works :ok_hand:

Hello,

device authentication worked and I think I understand the workflow better now.
But there is one issue: Is there a simple way to provide the email, username, password to the Authorizer function? Could you provide me an example for a email authentication based workflow for the NakamaSystem?
I would really appreciate it.

Hello @kroonhorstdino,

I believe all you’d need to do is follow the example here: Initializing the NakamaSystem - Heroic Labs Documentation, but instead of using the deviceId, you’d grab the user’s Username and Password and then run client.AuthenticateEmailAsync instead of client.AuthenticateDeviceAsync.