We have a software written in PHP as backend. And Jquery on the front end.
We used to use our own authentication but I would like to switch to Auth0.
I followed the php backend tutorial and I can verify tokens. But I’m not sure how save they are becouse I past a test token from the test app to the API and it works. But when I try to call the getuser api it is not working with that token.
For the pure jquery front-end I would like to use the most easy verfification method to generate the token. Then that token should be passed to PHP as a bearer with every back-end call.
But: In the back-end I would like to have all user info of the logged in user.
How do I get this info from the token?
I setted up an api in auth0 for this php back-end as described in the tutorial.
What tutorial do I need to follow for the jquery part?