Reviewed-on: #1 Co-authored-by: Clement <c.boesmier@aptatio.com> Co-committed-by: Clement <c.boesmier@aptatio.com>
13 lines
168 B
Plaintext
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')
|
|
|
|
--- |