mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
feat: modified Amazon Adapter to use the new custom scopes
This commit is contained in:
parent
907de3e95f
commit
67bda8b9fa
1 changed files with 4 additions and 0 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue