Authentication errors not received on client (Only 400 BAD REQUEST)

Is there any way to be able to see the error message for authentication errors?
They are not logged on the server runtime and the client does not receive them.
The only thing the client receives is a 400 BAD REQUEST.

For this example I sent a request with an ID that is too short

In runtime_go_nakama.go I see it returns an error.
return "", "", false, errors.New("expects id to be valid, must be 6-128 bytes")
And in api_authenticate.go there it returns a status error as well.
return nil, status.Error(codes.InvalidArgument, "Custom ID invalid, must be 6-128 bytes.")
Ideally we want to be able to read this error message on the client because right now there’s no way for us to know why authentication failed.
We also have some pre auth hooks with custom errors but those are not readable on the client either.
It makes it extremely difficult to debug authentication issues because there can be dozens of causes.

{
    url: 'http://localhost:7650/v2/account/authenticate/custom?create=true&username=sdk-test&',
    status: 400,
    statusText: 'Bad Request',
    headers: Headers { [Symbol(map)]: [Object: null prototype] },
    counter: 0
}

Here is the full response

# Setup

Javascript frontend

  • nakama-js 2.3.0

Golang backend

  • nakama-common v1.22.0
  • nakama 3.11.0

Bumping this for visibility, would be great to get an answer on this.