Compare commits
No commits in common. "kiseki" and "master" have entirely different histories.
|
|
@ -12,6 +12,7 @@ class DiscordProvider extends AbstractProvider implements ProviderInterface
|
|||
* {@inheritDoc}
|
||||
*/
|
||||
protected $scopes = [
|
||||
'email',
|
||||
'identify',
|
||||
];
|
||||
|
||||
|
|
@ -55,7 +56,7 @@ class DiscordProvider extends AbstractProvider implements ProviderInterface
|
|||
|
||||
$response = $this->getHttpClient()->get($userUrl, [
|
||||
'headers' => [
|
||||
'Authorization' => 'Bearer ' . $token,
|
||||
'Authorization' => 'Bearer '.$token,
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
@ -69,6 +70,7 @@ class DiscordProvider extends AbstractProvider implements ProviderInterface
|
|||
{
|
||||
return (new User())->setRaw($user)->map([
|
||||
'id' => $user['id'],
|
||||
'name' => $user['username'],
|
||||
'email' => $user['email'],
|
||||
'avatar' => sprintf('https://cdn.discordapp.com/avatars/%s/%s.png', $user['id'], $user['avatar']),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue