Solved Can't create multiple instances of connected account provider type XenForo

This topic has been solved
K

Kirby

Guest
Chris D said:
Kinda. There’s only one pre-installed but you can add multiple entries of type XF:Provider\XenForo to the provider table in the database if that’s needed.
Click to expand...
This does not work as the providerId is hardcoded in XF\ConnectedAccount\ProviderData

PHP:

Code:
public function getDefaultEndpoint(): string
{
    /** @var \XF\Entity\ConnectedAccountProvider $provider */
    $provider = \XF::app()->em()->find(ConnectedAccountProvider::class, 'xenforo');

    return...

Read more

Continue reading...