create register whit Socialite for google and facebook.use passport for get token

This commit is contained in:
2026-04-25 17:19:44 +03:30
parent 80989540c9
commit 086323e07a
8 changed files with 506 additions and 15 deletions

11
backend/routes/api.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
use app\User\Auth\AuthController;
use Illuminate\Support\Facades\Route;
Route::prefix('Auth')
->controller(AuthController::class)
->group(function () {
Route::get('google/redirect', 'redirectToGoogle')->name('google.redirect');
Route::get('google/registerGoogle', 'registerGoogle')->name('google.registerGoogle');
});