Skip to content

Commit

Permalink
fix: various bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Dec 17, 2024
1 parent 93f0224 commit 4daa7a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions SocialiteProviders/src/NFDIAAI/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
|
*/

'url' => env('APP_URL', 'http://localhost'),
'url' => env('APP_URL', 'https://coconut.naturalproducts.net/'),

'asset_url' => env('ASSET_URL'),

Expand Down
2 changes: 1 addition & 1 deletion config/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
'contact' => [
'name' => config('app.name'),
'email' => '[email protected]',
'url' => config('app.url'),
'url' => 'https://coconut.naturalproducts.net/',
],
'license' => [
'url' => null,
Expand Down

0 comments on commit 4daa7a1

Please sign in to comment.