But when after token generation I am using the token for other APIs, I am getting 401 error. Although both are from local. Please help to answer this