I would like to login users from the backend, but I don’t know if that’s possible? User would send user/pass to the backend, it would log the user in and send back the user object.
The reason for this is that we need user metadata and I guess that @auth0/nextjs-auth0
doesn’t allow us to fetch that and that I need the management API. Since the users login only is on the client side, there are no way for the backend to get the user ID and thereby it’s not possible for me to fetch that extra data.
There is a appSession
cookie, but it seems to be encrypted. Tried to get the user ID from that. Ideas are welcome Thanks.