diff --git a/SocialiteProviders/src/NFDIAAI/Provider.php b/SocialiteProviders/src/NFDIAAI/Provider.php index 20bc95b..c77cc73 100644 --- a/SocialiteProviders/src/NFDIAAI/Provider.php +++ b/SocialiteProviders/src/NFDIAAI/Provider.php @@ -3,9 +3,9 @@ namespace SocialiteProviders\NFDIAAI; use GuzzleHttp\RequestOptions; +use InvalidArgumentException; use SocialiteProviders\Manager\OAuth2\AbstractProvider; use SocialiteProviders\Manager\OAuth2\User; -use InvalidArgumentException; class Provider extends AbstractProvider { @@ -51,10 +51,10 @@ protected function getUserByToken($token) */ protected function mapUserToObject(array $user) { - if (!isset($user['id']) || empty($user['id'])) { + if (! isset($user['id']) || empty($user['id'])) { throw new InvalidArgumentException('The user data is invalid: a unique "id" is required.'); } - + return (new User)->setRaw($user)->map([ 'id' => $user['id'], 'nickname' => $user['username'], diff --git a/config/app.php b/config/app.php index bf7eae3..c641c59 100644 --- a/config/app.php +++ b/config/app.php @@ -55,7 +55,7 @@ | */ - 'url' => env('APP_URL', 'http://localhost'), + 'url' => env('APP_URL', 'https://coconut.naturalproducts.net/'), 'asset_url' => env('ASSET_URL'), diff --git a/config/rest.php b/config/rest.php index 875cc7e..a157572 100644 --- a/config/rest.php +++ b/config/rest.php @@ -71,7 +71,7 @@ 'contact' => [ 'name' => config('app.name'), 'email' => 'info.coconut@uni-jena.de', - 'url' => config('app.url'), + 'url' => 'https://coconut.naturalproducts.net/', ], 'license' => [ 'url' => null,