Use tokenendpoint instead of accesstoken index
This commit is contained in:
parent
bbbdff040f
commit
22db125fe6
@ -13,7 +13,7 @@ class IntuitProvider extends AbstractProvider implements ProviderInterface
|
|||||||
{
|
{
|
||||||
private const hosts = [
|
private const hosts = [
|
||||||
'authorise' => 'https://appcenter.intuit.com/connect/oauth2',
|
'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',
|
'local' => 'https://sandbox-quickbooks.api.intuit.com',
|
||||||
'production' => 'https://quickbooks.api.intuit.com',
|
'production' => 'https://quickbooks.api.intuit.com',
|
||||||
];
|
];
|
||||||
@ -47,7 +47,7 @@ class IntuitProvider extends AbstractProvider implements ProviderInterface
|
|||||||
|
|
||||||
protected function getTokenUrl()
|
protected function getTokenUrl()
|
||||||
{
|
{
|
||||||
return Arr::get(self::hosts,'accesstoken');
|
return Arr::get(self::hosts,'tokenendpoint');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function mapUserToObject(array $user)
|
protected function mapUserToObject(array $user)
|
||||||
|
Loading…
Reference in New Issue
Block a user