I have spent over 6 hours trying to get a basic setup working, so i’m posting here as a last resort.
I have followed the quick start for an AngularJS app, works fine. I have also added an API app (nodeJS/express) to my account, tested in postman using a token I generated on my console, also works great!
However, now I want to connect the two together, I am having issues.
In my angularJs app I inject authService.getAccessToken() into jwtOptionsProvider as per the docs put this access token isn’t a JWT, so it’s rejected by my API (malformed). So, I have tried IdToken, which looks more like a JWT but my API rejects it - “JsonWebTokenError: secret or public key must be provided”
I’m obviously missing a step here, at this point I feel it would been significantly quicker just to do this in house rather than using Auth0. However, I have got this far I really want to see it through.
Thanks in advance for your help!