mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: modified amazon adapter
This commit is contained in:
@@ -18,7 +18,7 @@ class Amazon extends OAuth
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $requiredScope = [
|
||||
protected $scopes = [
|
||||
"profile"
|
||||
];
|
||||
|
||||
@@ -46,10 +46,6 @@ class Amazon extends OAuth
|
||||
*/
|
||||
public function getLoginURL(): string
|
||||
{
|
||||
foreach ($this->requiredScope as $item) {
|
||||
$this->addScope($item);
|
||||
}
|
||||
|
||||
return 'https://www.amazon.com/ap/oa?'.http_build_query([
|
||||
'response_type' => 'code',
|
||||
'client_id' => $this->appID,
|
||||
|
||||
@@ -17,7 +17,7 @@ class Bitbucket extends OAuth
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $scope = [];
|
||||
protected $scopes = [];
|
||||
|
||||
/**
|
||||
* @return string
|
||||
|
||||
Reference in New Issue
Block a user