I have bought kite API key and secret Key today and I am getting this invalid checksum error eventhough i am entering correct apiKey,requestToken and apiSecret. below is my code to generate CheckSum and request refresh token function generateChecksum( apiKey, requestToken, apiSecret ) { return crypto .createHmac( 'sha256', apiSecret ) .update( apiKey + requestToken + apiSecret ) .digest( 'hex' ); } app.get( '/redirect', async ( req, res ) => { const requestToken = req.query.request_token;
if ( !requestToken ) { return res.status( 400 ).send( 'Request token not found' ); }