Unable to get access_token

I am getting this error: “s”: “error”, “code”: -371, “message”: “Please provide sha256 hash of appId and app secret”

I am using v3 API. I tried following code in this repository(https://github.com/FyersDev/fyers-api-sample-code/blob/sample_v3/v3/python/login/get_access_token.py) but still getting this error.

The docs and the examples provided are completely out of sync. Can someone at the fyers team help me with the right way to get this access token ( I was able to get the auth token).

Hi , @105698679385700638738

Please make sure that the steps given in the docs are followed correctly , Few lines needs to be uncommented before running it , as mentioned in the link , kindly make sure that’s followed.

Hi @WWhYB2qrsx , it seems to be working now. Thanks
One more query, do i have to keep regenerating access_token every time i run my code ?? Or is there a way i can use the same token to login for a given period ?

Currently if i stop my program, I need to redo the whole authentication process (ie generate auth token, then get the access token.., which is a very tedious process)