Auth0 Home Blog Docs

Call webtask from nodejs


#1

Hi,

I have auth0 secured webtask API and it works fine. It asks me to enter credentials, and after that it can show JSON data.

Now I have nodejs website and I can access to it by auth0. after logged in, I can get access_token and id_token. Then I tried to call webtask API with id_token like:

  1. http://webtask_url?access_token=id_token
  2. Authorization: Bearer id_token

Both attempt return “Not authorized” error and asking to logged in.

How to securely call webtask API from nodejs?

Thanks,