start adding vue

This commit is contained in:
2026-09-07 15:13:43 +02:00
parent 298adeb146
commit 425169722a
7 changed files with 304 additions and 46 deletions
+3 -2
View File
@@ -9,7 +9,7 @@ Route::get('/', function () {
});
Route::prefix('auth')->group(function () {
Route::get('login', function () {
Route::get('/login', function () {
return Socialite::driver('authentik')->redirect();
});
@@ -23,9 +23,10 @@ Route::prefix('auth')->group(function () {
'email' => $user->email,
'oauth_token' => $user->token,
]);
Auth::login($new_user);
return redirect('/');
return redirect('/')->with(['user' => $new_user]);
// $user->token
});
});