Why the authorization code I get from callback is a JWT instead of a hash string?

I am trying to test the JIRA Oauth 2.0 flow for my app.
I created my app in the develop console, set the permission and the call back url.
after redirect user to the auth url, in the callback from JIRA , the authorization code I get is always a JWT, and when I use it try to get the access_token , it get the response as a bad request. I use curl to test use the code to get access token, and get the error of “invalid authorization code.”

router.get('/jsm', async function(req,res){
 
  const code = req.query.code;
    if (code) {
    // Exchange the code for an access token
    try{
      const params = new URLSearchParams();
      params.append('grant_type', 'authorization_code');
      params.append('client_id', CLIENT_ID);
      params.append('client_secret', CLIENT_SECRET);
      params.append('code', code);
      params.append('redirect_uri', REDIRECT_URI);
      const tokenResponse = await fetch('https://auth.atlassian.com/oauth/token', {
        method: 'POST',
        header: {
          'Content-Type': 'application/json',
        },
        body: params
      });
      if (tokenResponse.ok) {
        const data = await tokenResponse;
        console.log(data)
      } else {
        console.log(tokenResponse.ok)
        console.log(tokenResponse)
      }
    } catch (error) {
      console.error('Error exchanging authorization code:', error);
      res.redirect('/error-page');
    }
  }

I output the req query and code from the callback request from JIRA, the value of code is not like an authorization code.
if I try to use the code to get access_token, I will receive the error 400 bad request

Welcome to the Atlassian developer community @ruichen,

The token end-point doesn’t accept query parameters, it’s a JSON body. Please see our docs on how to exchange an authorization code for an access token.

Aside, JWT is expected as an authorization code.

Thank you , the problem is solved and I can get the exchanged access_token now.
the code is as :

......
      const exchangeBody = {
        "grant_type": "authorization_code",
        "client_id": CLIENT_ID,
        "client_secret": CLIENT_SECRET,
        "code": code,
        "redirect_uri": REDIRECT_URI}
      const tokenResponse = await fetch('https://auth.atlassian.com/oauth/token', {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json',
        },
        body: JSON.stringify(exchangeBody)
      });
.......