feat: add session validation composable
- Created checkSession composable to validate sessionid query parameter - Automatically redirects to home page when sessionid is missing
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
export function checkSession() {
|
||||||
|
const sessionid = useRoute().query.sessionid
|
||||||
|
if (!sessionid) {
|
||||||
|
navigateTo('/')
|
||||||
|
}
|
||||||
|
return sessionid
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user