Is your app a single-page app (SPA)? The redirect URIs for SPAs that use the auth code flow requires special configuration.
However, the SPA redirect type is backward-compatible with the implicit flow. Apps currently using the implicit flow to get tokens can move to the spa redirect URI type without issues and continue using the implicit flow. So if your application is a SPA, then using implicit flow is the best choice.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.