Aud and Iss values being swapped in generation

Hi, I am currently trying to create a jwt bearer token and I’m coming across a problem and was wondering if anyone had any possible solutions. When I create the token the iss is an ID and the aud is a url. However when I decide the token these values are swapped, is this how it should be? If not does anyone know why it might be doing this? Thanks