feat/ login on est pas mal

This commit is contained in:
2024-04-26 16:25:04 +02:00
parent 02e84ed9d6
commit 5f642a6aa0
3 changed files with 18 additions and 4 deletions

View File

@ -0,0 +1,13 @@
---
import PocketBase from 'pocketbase'
const pb = Astro.locals.pb as PocketBase
if(pb.authStore.isValid){
pb.authStore.clear()
}
return Astro.redirect('/account/login')
---