method getTokens documentation in bbn\Api\Permissions\MolliePermissions

function(string $authorization_code) { try { // Try to get an access token using the authorization code grant. $tokens = $this->provider->getAccessToken('authorization_code', [ 'code' => $authorization_code ]); return [ 'access_token' => $tokens->getToken(), 'refresh_token' => $tokens->getRefreshToken(), 'expires_in' => $tokens->getExpires() ]; } catch (IdentityProviderException $e) { // Failed to get the access token or user details. exit($e->getMessage()); } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.