Node JS Authentication API

Hi there,

I’m trying to create an API in Node JS that will allow a user to send through some credentials(email/pass), and based on those credentials, return a bearer token. I’ve been looking through documentation for a few hours now and am not finding a clear path to doing this. Everything I see from my understanding requires a redirect to a page where the user auths directly through auth0’s modal.

Any help would be greatly appreciated! Thanks!