method refreshAccessToken documentation in bbn\Api\Permissions\MolliePermissionManager

Refresh access token from the given refresh token and update it in db for the given account name.

function(string $refresh_token, string $account_name) { $tokens = $this->apiPermission->refreshAccessToken($refresh_token); $access_token = $tokens['access_token']; $refresh_token = $tokens['refresh_token']; $expires_in = $tokens['expires_in']; // The number of seconds left before the access token expires. $this->updateTokensInDb($access_token, $refresh_token, $expires_in, $account_name); return $access_token; }

Refresh access token from the given refresh token and update it in db for the given account name. 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.