Why do I get error 371 appIdHash error on nodejs login.

I am getting error 371 on generate_auth code through nodejs. I have searched this forum but the expert is only providing surface level answers. There is no detailed explanation how to resolve this error. Why this error is even coming when there is no mention of appIdHash on v3 docs for nodejs

Hi @108877462860227348410
APPIDHASH is irrespective of any language , Make sure while creating APPID hash there is no extra space and backspace in your string.
While generating auth_code appidHash is not requried while genrating access token it is requried

Can you show me your code so that I can help you.
Meanwhile can you check with autoglogin script
https://github.com/FyersDev/fyers-api-sample-code/blob/sample_v3/v3/node/login/auto_login_totp.js