usage
This commit is contained in:
parent
f6239792c4
commit
fbf350f73c
2 changed files with 10 additions and 1 deletions
7
src/routes/+layout.server.ts
Normal file
7
src/routes/+layout.server.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
export async function load({locals}) {
|
||||||
|
const session = await locals.auth();
|
||||||
|
|
||||||
|
return {
|
||||||
|
session
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,7 +2,9 @@
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
import { ModeWatcher } from 'mode-watcher';
|
import { ModeWatcher } from 'mode-watcher';
|
||||||
|
|
||||||
let { children } = $props();
|
let { data, children } = $props();
|
||||||
|
|
||||||
|
$inspect(data.session);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ModeWatcher />
|
<ModeWatcher />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue