Files
ratrapage_T-WEB/front/src/pages/account/logout.astro
Clement 57a57c63ff
All checks were successful
Build Docker Image Front / run (push) Successful in 24s
Build Docker Image Back / run (push) Successful in 21s
feat: gestion-utilisateur (#1)
Reviewed-on: #1
Co-authored-by: Clement <c.boesmier@aptatio.com>
Co-committed-by: Clement <c.boesmier@aptatio.com>
2024-05-20 12:48:34 +02:00

13 lines
168 B
Plaintext

---
import PocketBase from 'pocketbase'
const pb = Astro.locals.pb
if(pb.authStore.isValid){
pb.authStore.clear()
}
return Astro.redirect('/account/login')
---