This is the AWS Lambda use case.
An OAuth token can be cached in global variables, and it will survive as long as the container does (rather than invocation scope).
Allowing the token to be cached in Redis easily is another.
Steps to do this:
- Expose hooks to allow users to manage it manually.
- Created a Redis-aware OAuth cache.