You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<script context="module">
|
|
import { token, user } from "./_components/common"
|
|
import { get } from "svelte/store"
|
|
|
|
export async function preload() {
|
|
if (get(token) == null) {
|
|
this.redirect(302, "sign-in")
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<p cy="session">user in store from session: {$user.email}</p>
|
|
|