Is there a simpler way to generate a three legged token only using Node js. I have used the method in the [1]: https://learnforge.autodesk.io/#/oauth/3legged/nodejs, but I am looking for a simpler method, that just gives me the token.
The standard workflow for a 3-legged OAuth token (not just for Forge but for any OAuth 2.0 provider) is typically:
This process is explained in the docs as well.
Another option that is perhaps a bit simpler is using the "implicit grant" where the step 3 is basically skipped, and the access token is included directly in the callback. The downside of this approach is that you do not receive the refresh token.