Access the underlying simple-oauth2 instance via namespaces
mainThe plugin decorates the Fastify instance with the simple-oauth2 instance. To allow multiple OAuth providers to coexist without collision, the instance is placed inside a namespace defined by the name property in your configuration.
The instance is accessible via two paths:
fastify.oauth2<name>.oauth2fastify.<name>.oauth2
// If registered with name: 'facebook'
// Access via:
fastify.oauth2Facebook.oauth2
fastify.facebook.oauth2