Skip to content

Commit

Permalink
Update SteadyResourceOwner.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschloebe authored Jun 21, 2023
1 parent 793996f commit dbcb9a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Provider/SteadyResourceOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(array $response)
*/
public function getId()
{
return $this->getValueByKey($this->response['data'], 'email');
return $this->getValueByKey($this->response['data'], 'id');
}

/**
Expand All @@ -43,7 +43,7 @@ public function getId()
*/
public function getName()
{
return $this->getValueByKey($this->response['data'], 'first-name').' '.$this->getValueByKey($this->response['data'], 'last-name');
return $this->getValueByKey($this->response['data']['attributes'], 'first-name').' '.$this->getValueByKey($this->response['data']['attributes'], 'last-name');
}

/**
Expand All @@ -53,7 +53,7 @@ public function getName()
*/
public function getEmail()
{
return $this->getValueByKey($this->response['data'], 'email');
return $this->getValueByKey($this->response['data']['attributes'], 'email');
}

/**
Expand All @@ -63,7 +63,7 @@ public function getEmail()
*/
public function getAttribute($key)
{
return $this->getValueByKey($this->response['data'], (string) $key);
return $this->getValueByKey($this->response['data']['attributes'], (string) $key);
}

/**
Expand Down

0 comments on commit dbcb9a9

Please sign in to comment.