refactor: remove debug logging from social OAuth controllers
This commit is contained in:
parent
3845737857
commit
7d9302b064
3 changed files with 0 additions and 24 deletions
|
|
@ -65,12 +65,6 @@ public function callback(Request $request): View
|
|||
// Fetch vanityName from LinkedIn API (not available via OpenID)
|
||||
$username = $this->fetchVanityName($socialUser->token);
|
||||
|
||||
Log::info('LinkedIn OAuth User Data', [
|
||||
'nickname' => $socialUser->getNickname(),
|
||||
'username' => $username,
|
||||
'user' => $socialUser->user ?? [],
|
||||
]);
|
||||
|
||||
$avatarPath = uploadFromUrl($socialUser->getAvatar());
|
||||
|
||||
$account = $workspace->socialAccounts()->updateOrCreate(
|
||||
|
|
@ -115,11 +109,6 @@ private function fetchVanityName(string $accessToken): ?string
|
|||
'projection' => '(id,vanityName,localizedFirstName,localizedLastName)',
|
||||
]);
|
||||
|
||||
Log::info('LinkedIn /me API response', [
|
||||
'status' => $response->status(),
|
||||
'body' => $response->json(),
|
||||
]);
|
||||
|
||||
if ($response->successful()) {
|
||||
return $response->json('vanityName');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,13 +60,6 @@ public function callback(Request $request): View
|
|||
try {
|
||||
$socialUser = Socialite::driver($this->driver)->user();
|
||||
|
||||
Log::info('Pinterest OAuth User Data', [
|
||||
'id' => $socialUser->getId(),
|
||||
'nickname' => $socialUser->getNickname(),
|
||||
'name' => $socialUser->getName(),
|
||||
'user' => $socialUser->user ?? [],
|
||||
]);
|
||||
|
||||
$avatarPath = uploadFromUrl($socialUser->getAvatar());
|
||||
|
||||
// Create new account
|
||||
|
|
|
|||
|
|
@ -65,12 +65,6 @@ public function callback(Request $request): View
|
|||
->scopes($this->scopes)
|
||||
->user();
|
||||
|
||||
Log::info('TikTok OAuth User Data', [
|
||||
'nickname' => $socialUser->getNickname(),
|
||||
'user' => $socialUser->user ?? [],
|
||||
'attributes' => $socialUser->attributes ?? [],
|
||||
]);
|
||||
|
||||
// TikTok returns username via getNickname() when user.info.profile scope is included
|
||||
$username = $socialUser->getNickname();
|
||||
$avatarPath = uploadFromUrl($socialUser->getAvatar());
|
||||
|
|
|
|||
Loading…
Reference in a new issue