Skip to content

Commit bdd8dc2

Browse files
committed
Refactor access token variable in SocialAuthController for clarity
This commit renames the variable holding the access token from `$token` to `$accessToken` in the handleGoogleCallback method of the SocialAuthController. This change improves code readability and maintains consistency in naming conventions.
1 parent ec8eadf commit bdd8dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Auth/SocialAuthController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function handleGoogleCallback(): RedirectResponse
5050

5151
$scope = $this->getUserScope($user->role_id);
5252
$tokenResult = $user->createToken('GoogleAuthToken', [$scope]);
53-
$token = $tokenResult->accessToken;
53+
$accessToken = $tokenResult->accessToken;
5454

5555
// Refresh Token (Créer un jeton de durée de vie plus longue pour le rafraîchissement)
5656
$refreshToken = $user->createToken('GoogleRefreshToken', [], Carbon::now()->addDays(30))->accessToken;

0 commit comments

Comments
 (0)