What's wrong with my JWT generation I am using this code to generate JWT
const jwt = require('atlassian-jwt');
const moment = require('moment');
const now = moment().utc();
const clientKey='XXXXXXXXXXXX';
const sharedSecret = 'XXXXXXXXXXXXXX';
const req = jwt.fromMethodAndUrl('GET', 'https://api.bitbucket.com/2.0/repositories/{bfd8fa1a-XXX-XXX-XXX-XXXXXXX}');
const tokenData = {
"iss": 'codelock',
"iat": now.unix(),
"exp": now.add(30, 'minutes').unix(),
"qsh": jwt.createQueryStringHash(req),
"sub": clientKey
};
const token = jwt.encode(tokenData, sharedSecret);console.log(token);