Edge Runtime Extended Functions

Hi
I was looking at the edge runtime code, and I was wondering if there’s an example of extending it with additional context that is per request or at least per script?

I was considering a flow like:

  1. Main runtime looks up information about user from user database
  2. Main runtime validate user has access to function
  3. Script in runtime can read username from something like Context.user as a global and get that information if needed
Thanks
Was this page helpful?