@@ -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 | { |
@@ -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 | { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * @param array $response |
123 | 123 | * @param AccessToken $token |
124 | 124 | * |
125 | - * @return League\OAuth2\Client\Provider\ResourceOwnerInterface |
|
125 | + * @return ZohoUser |
|
126 | 126 | */ |
127 | 127 | protected function createResourceOwner(array $response, AccessToken $token) |
128 | 128 | { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * @param array $response |
139 | 139 | * @param AbstractGrant $grant |
140 | - * @return AccessTokenInterface |
|
140 | + * @return ZohoAccessToken |
|
141 | 141 | */ |
142 | 142 | protected function createAccessToken(array $response, AbstractGrant $grant) |
143 | 143 | { |
@@ -146,6 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | /** |
148 | 148 | * You must use your domain-specific Zoho Accounts URL to generate access and refresh tokens |
149 | + * @param string $dc |
|
149 | 150 | * @return string zoho data center url |
150 | 151 | */ |
151 | 152 |