For those working in a Node environment and trying to obtain the authorization token in offline mode, I recommend checking if your local server is stuck. After the consent confirmation, the authorization process redirects to your callback API. If your local server is unresponsive, it won't be able to reach the callback API, which was the issue I encountered.