Refer to this Troubleshoot documentation
The reason can be either Bad access token or Embed type doesn't match token type. Looking into your code, the tokenType is 1 which is correct. but the comment says Aad Token and you're using Aad token. Change the tokenType: 0 for Aad Token. Refer to this documentation