mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
feat: modified Amazon Adapter to use the new custom scopes
This commit is contained in:
@@ -46,6 +46,10 @@ class Amazon extends OAuth
|
||||
*/
|
||||
public function getLoginURL(): string
|
||||
{
|
||||
foreach ($this->requiredScope as $item) {
|
||||
$this->addScope($item);
|
||||
}
|
||||
|
||||
return 'https://www.amazon.com/ap/oa?' .
|
||||
'client_id='.urlencode($this->appID).
|
||||
'&redirect_uri='.urlencode($this->callback).
|
||||
|
||||
Reference in New Issue
Block a user