/v1/token Return Could not Exchange code for an access token

Hello team

Read this document at Before you begin | Okta Developer and configured with a example

Request code: Could not Exchange code for an access token

The return is simply NULL

Are you using this sample app and seeing this error or did you create your own?

This example, has been tried, through the SDK, into the project has also been tried, into your own project in the local environment, not using protocols like HTTPS: Internet


Create your own:

Redirection to the login page: /v1/authorize. It is also possible to obtain code, but it is not possible to obtain token.


Strictly follow the documents

  1. Create application:Create an Okta app integration | Okta Developer

  2. Update your environment variables to include the following: