Auth0 authentication check in Redoowd function


I have Auth0 set up and working on my Redwood app, and I’d like to be able to protect a few serverless functions I’ve created via yarn rw generate function exampleFunctionName from unauthenticated use by checking that a user is logged in when a request to run a function occurs.

The documentation has some notes on using Redwood authentication inside a function, but I’m trying to figure out how I do it with my existing Auth0 setup?

Thanks in advance for any help!