Hi. I use client.authenticateCustom auth from client side and pass userId and username params to method. But I didn’t see passed username inside nakama panel and inside Presence object on server (username that I see is random generated string).
I investigating a problem and see next:
- I added hook “before custom auth”
- do custom auth from client
- logging request and I see correct user id and username:
nakama_1 | {“msg”:“id: 5695f0f2-b581-4c92-8e32-1c9c7cc4400f”,“api_id”:“authenticatecustom”,“mode”:“after”}
nakama_1 | {“msg”:“username: 5695f0f2-b581-4c92-8e32-1c9c7cc4400f”,“api_id”:“authenticatecustom”,“mode”:“after”}
- logging Presence from streamUserList:
nakama_1 | {“msg”:“id f332ffc6-759a-403e-a900-22bc233dfdb4”,“rpc_id”:“get_friends_online”}
nakama_1 | {“msg”:“username uwLHRTaCNV”,“rpc_id”:“get_friends_online”}
So I see that passed userId and username to custom auth ignored at some step after auth.
Can anyone take a look please?