feat: register login with google

This commit is contained in:
2025-08-24 14:50:15 +03:30
parent d14ad7f0f5
commit 0e49229621
13 changed files with 443 additions and 53 deletions
+2 -1
View File
@@ -10,12 +10,13 @@
Route::get('package-names/{name}/products', [ProductController::class, 'index']);
Route::prefix('auth')->controller(UserController::class)->group(function () {
Route::middleware(['throttle:3,1', 'auto-ban'])->post('login-otp', 'loginOTP');
Route::middleware(['throttle:3,1'])->post('login-otp', 'loginOTP');
Route::post('check-otp', 'checkOTP');
Route::post('login', 'login');
Route::post('register', 'register');
Route::post('/login-google', 'googleLogin');
Route::get('/oauth/callback', 'oauthCallback');
Route::middleware('auth:sanctum')->group(function () {
Route::put('logout', 'logout');