I’m working on integrating the GPT API into our system, which involves configuring OAuth for API invocations. We have a custom endpoint in our system to handle Authorization and Token processes. The GPT correctly invokes our Authorization endpoint, receiving the code and state in response. However, it fails to call the token endpoint, leading to an error in the UI stating “Missing access_token”, without any trace of the GPT hitting the token endpoint.
Api invoked from the front end: https://chat.openai.com/backend-api/aip/p/g-f7e6b74877…/user-settings/oauth/callback?code=eyJraWQiOiJjc3…WemB3LBpr-0XNL9x.uDWJ9Qkz…&redirect_uri=https%3A%2F%2Fchat.openai.com%2Faip%2Fg-f7e6b74877…&state=f5096afb …
Response from api
{
“success”: false,
“error”: “Missing access_token”,
“redirect_path”: “/g/g-JAQUw-skypgpt-dev/c/a279e945-1222-5e03d4b9ca69”,
“message”: “Missing access_token”
}
I was manually able to invoke the token endpoint using the generated code and get the expected response including access_token from postman.