I’ve got a new nodejs app running, and I want to use auth0 for authorization.
I’m getting to the auth0 page, and selecting a google account.
The user is being registered as being logged on correctly in the Auth0 admin page.
When my callback is called (/auth_callback), it has a code and state query param, but when it goes through passport, and the Auth0Strategy strategy, I get a Token Error. I’m sure I have everything set up correctly.
The stack in the browser after the error looks like:
TokenError: Unauthorized
at Strategy.OAuth2Strategy.parseErrorResponse (/Users/andrew/dev/THREAM/thream/node_modules/passport-oauth2/lib/strategy.js:358:12)
at Strategy.OAuth2Strategy._createOAuthError (/Users/andrew/dev/THREAM/thream/node_modules/passport-oauth2/lib/strategy.js:405:16)
at /Users/andrew/dev/THREAM/thream/node_modules/passport-oauth2/lib/strategy.js:175:45
at /Users/andrew/dev/THREAM/thream/node_modules/oauth/lib/oauth2.js:191:18
at passBackControl (/Users/andrew/dev/THREAM/thream/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage.<anonymous> (/Users/andrew/dev/THREAM/thream/node_modules/oauth/lib/oauth2.js:157:7)
at IncomingMessage.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1244:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)