@luiz motta
Thank you for your post!
-Are you able to provide any documentation that you followed to set up your Web API?
-Can you provide the token endpoint you're currently using?
-Is your webAPI using the correct token endpoint?
V1: https://login.microsoftonline.com/<tenant id>/oauth2/token
V2: https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
Related issue:
UseJwtBearerAuthentication failed: Unauthorized token and The signature is invalid
If you're still having issues can you please provide your encoded token?
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.