Creates an OAuthServerProvider for an OIDC-compliant authorization server.
This is an async factory — it fetches the OIDC discovery document at creation time to resolve endpoint URLs. The discovery document is cached with a configurable TTL and refreshed transparently on subsequent token verifications.
Internally delegates to createUpstreamOAuthProvider after resolving endpoints.
OIDC provider configuration
Provider and callback handler, ready for AuthOptions
Creates an OAuthServerProvider for an OIDC-compliant authorization server.
This is an async factory — it fetches the OIDC discovery document at creation time to resolve endpoint URLs. The discovery document is cached with a configurable TTL and refreshed transparently on subsequent token verifications.
Internally delegates to createUpstreamOAuthProvider after resolving endpoints.