Use tokenendpoint instead of accesstoken index

This commit is contained in:
Deon George 2022-08-12 15:01:43 +10:00
parent bbbdff040f
commit 22db125fe6
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class IntuitProvider extends AbstractProvider implements ProviderInterface
{
private const hosts = [
'authorise' => 'https://appcenter.intuit.com/connect/oauth2',
'accesstoken' => 'https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer',
'tokenendpoint' => 'https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer',
'local' => 'https://sandbox-quickbooks.api.intuit.com',
'production' => 'https://quickbooks.api.intuit.com',
];
@ -47,7 +47,7 @@ class IntuitProvider extends AbstractProvider implements ProviderInterface
protected function getTokenUrl()
{
return Arr::get(self::hosts,'accesstoken');
return Arr::get(self::hosts,'tokenendpoint');
}
protected function mapUserToObject(array $user)