Context Access
It is possible to access the ctx object in functions and helpers that don’t get it as an argument via the
Provider static ctx getter (Provider.ctx). This utilizes node’s
AsyncLocalStorage and results in ctx
being available in method invocations where it isn’t normally passed as an argument (e.g. in Adapter)
so long as that method is invoked within the context of an HTTP request that is being handled by oidc-provider’s
route handlers.