@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * The provided scope will be used if you don't give any scope |
75 | 75 | * and this scope will be used to grab user accounts public information |
76 | 76 | * |
77 | - * @return array |
|
77 | + * @return string[] |
|
78 | 78 | */ |
79 | 79 | protected function getDefaultScopes() |
80 | 80 | { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @param array $response |
118 | 118 | * @param AccessToken $token |
119 | 119 | * |
120 | - * @return League\OAuth2\Client\Provider\ResourceOwnerInterface |
|
120 | + * @return ZohoUser |
|
121 | 121 | */ |
122 | 122 | protected function createResourceOwner(array $response, AccessToken $token) |
123 | 123 | { |
@@ -131,6 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | /** |
133 | 133 | * You must use your domain-specific Zoho Accounts URL to generate access and refresh tokens |
134 | + * @param string $dc |
|
134 | 135 | * @return string zoho data center url |
135 | 136 | */ |
136 | 137 |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Asad\OAuth2\Client\Provider; |
4 | 4 | |
5 | -use League\OAuth2\Client\Provider\AbstractProvider; |
|
5 | +use Asad\OAuth2\Client\AccessToken\ZohoAccessToken; |
|
6 | 6 | use League\OAuth2\Client\Grant\AbstractGrant; |
7 | -use Psr\Http\Message\ResponseInterface; |
|
7 | +use League\OAuth2\Client\Provider\AbstractProvider; |
|
8 | 8 | use League\OAuth2\Client\Provider\Exception\IdentityProviderException; |
9 | -use League\OAuth2\Client\Tool\BearerAuthorizationTrait; |
|
10 | 9 | use League\OAuth2\Client\Token\AccessToken; |
11 | -use Asad\OAuth2\Client\AccessToken\ZohoAccessToken; |
|
10 | +use League\OAuth2\Client\Tool\BearerAuthorizationTrait; |
|
11 | +use Psr\Http\Message\ResponseInterface; |
|
12 | 12 | |
13 | 13 | class Zoho extends AbstractProvider |
14 | 14 | { |