method authorize documentation in bbn\Api\Permissions\MolliePermissionManager
Redirect the user to get authorization.
$authorization_url = $this->apiPermission->getAuthorizationUrl();
// Get the state generated for you and store it to the session.
$_SESSION['oauth2state'] = $this->apiPermission->getProvider()->getState();
// Redirect the user to the authorization URL.
header('Location: ' . $authorization_url);
Redirect the user to get authorization. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way