I’m using Google and Github social connections to get an idToken. This token I then use as a JWT token and it gets validated perfectly by my hapi.js back end using the hapi-auth-jwt2 library. I do the fetching and collecting of the token using the standard auth0.js library, with callback url where I taken the id_token from the callback URL. All good and works as designed.
I also integrated the database username/password option, and I get back an authResult object with and idToken. However, this token is always invalid according to my backend.
It looks exactly correct and I double checked and debugged to make sure correctly formed token is sent to my back end, but not luck.
Is this a bug or am I missing something completely?