Best way to pass parameters into a adminAuth plugin

A request for some advice:

My team is working on a custom-user-authentication plugin for the adminAuth setting as per: https://nodered.org/docs/security#custom-user-authentication

If we want the plugin to be reusable, is there a best practice for passing in parameters (e.g. api token, or group lists)?

Thanks in advance!

Have you looked at the Twitter and GitHub Auth plugins we provide? In absence of anything else, they would be the best practice examples we have.

Thanks! I had forgot that those examples existed. We'll use that as a starting point.