fun getOAuth2Method(provider: OAuth2Method.Provider, context: Context): OAuth2Method
Creates an instance of OAuth2Method to perform an OAuth2 authentication with a given provider from a given Android context (typically the Activity from which the authentication call-flow is to be started).