WeChat.Plug.WebPageOAuth2.oauth2

You're seeing just the function oauth2, go back to WeChat.Plug.WebPageOAuth2 module for more information.
Link to this function

oauth2(conn, query_params, client)