In the local environment access token is working fine but after deployment it on server. Access token got "None" randomly after 2-3 request or sometime immediately after login. Steps that I followed: 1. After login URL, I got request token 2. Using request token, I got access token successfully by generating session. 3. In the logging I can see the access token 4. After then when I call second request kite.orders() it says Invalid api keys or access token. Sometime it works for 3-4 request and access token got None after some requests.
Access token don't change by another API request other than generate_session.