Skip to content

Commit

Permalink
Set approvedScopes property on user (#855)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Sinclair <diego@iconosqua.re>
Co-authored-by: atymic <atymicq@gmail.com>
  • Loading branch information
3 people authored May 25, 2022
1 parent 98a2b8d commit 47a727b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public function user()

return $this->user->setToken($token)
->setExpiresIn(Arr::get($response, 'data.expires_in'))
->setRefreshToken(Arr::get($response, 'data.refresh_token'));
->setRefreshToken(Arr::get($response, 'data.refresh_token'))
->setApprovedScopes(explode($this->scopeSeparator, Arr::get($response, 'data.scope', '')));
}

/**
Expand Down

0 comments on commit 47a727b

Please sign in to comment.