I am trying to setup social login. I have a react app, mobile app and backend in Laravel. We have setup the Auth0 SDKs in both the react and mobile app but the access token received after the login is giving unauthorized error in the backend side.
Frontend app is sending the access token in header as authorization bearer but auth0 middleware is treating it as invalid. Please help.
Thank you so much. It really helped and worked fine.
Now the second issue I am facing is:
We have created a native application for mobile, an SPA application for react frontend and a regular web application for backend. But I can only define single clientId in the Laravel backend. So, do we really need 3 applications or am I doing something wrong?