mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-13 05:26:47 +00:00
🔒 Add Nostr authentication support with custom guard and user provider
🛠️ Integrate Nostr auth across relevant components and views 📦 Update config, routes, and service provider for Nostr auth
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Spatie\MediaLibrary\MediaCollections\Models\Media;
|
||||
|
||||
Route::redirect('/', '/association/profile');
|
||||
@@ -11,3 +12,9 @@ Route::get('dl/{media}', function (Media $media, Request $request) {
|
||||
})
|
||||
->name('dl')
|
||||
->middleware('signed');
|
||||
|
||||
Route::post('logout', function () {
|
||||
\App\Support\NostrAuth::logout();
|
||||
Session::flush();
|
||||
return redirect('/');
|
||||
})->name('logout');
|
||||
|
||||
Reference in New Issue
Block a user