Lucia Authentication #8
1 changed files with 0 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
|
https://github.com/Machinata/hestia/pull/8/files#diff-b07092d78bfaa239d6ad0d01b0897c3ef49533b08512622d83c6f4e1dd3b363e
switched back to any type switched back to any type
Use the logger pls Use the logger pls
I dont think you can type event as a a Session, from the app typedefs you made it should be event.locals.[session or user idk] I dont think you can type event as a a Session, from the app typedefs you made it should be _event.locals.[session or user idk]_
https://github.com/Machinata/hestia/pull/8/files#diff-b07092d78bfaa239d6ad0d01b0897c3ef49533b08512622d83c6f4e1dd3b363e
switched back to any type switched back to any type
Use the logger pls Use the logger pls
|
|||||||
import { prisma } from '$lib/server/prisma';
|
import { prisma } from '$lib/server/prisma';
|
||||||
export async function load(event) {
|
export async function load(event) {
|
||||||
console.log(event.cookies.get('user'));
|
|
||||||
|
I dont think you can type event as a a Session, from the app typedefs you made it should be event.locals.[session or user idk] I dont think you can type event as a a Session, from the app typedefs you made it should be _event.locals.[session or user idk]_
https://github.com/Machinata/hestia/pull/8/files#diff-b07092d78bfaa239d6ad0d01b0897c3ef49533b08512622d83c6f4e1dd3b363e
switched back to any type switched back to any type
Use the logger pls Use the logger pls
|
|||||||
const userId = event.cookies.get('user');
|
const userId = event.cookies.get('user');
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
I dont think you can type event as a a Session, from the app typedefs you made it should be event.locals.[session or user idk] I dont think you can type event as a a Session, from the app typedefs you made it should be _event.locals.[session or user idk]_
https://github.com/Machinata/hestia/pull/8/files#diff-b07092d78bfaa239d6ad0d01b0897c3ef49533b08512622d83c6f4e1dd3b363e
switched back to any type switched back to any type
Use the logger pls Use the logger pls
I dont think you can type event as a a Session, from the app typedefs you made it should be event.locals.[session or user idk] I dont think you can type event as a a Session, from the app typedefs you made it should be _event.locals.[session or user idk]_
https://github.com/Machinata/hestia/pull/8/files#diff-b07092d78bfaa239d6ad0d01b0897c3ef49533b08512622d83c6f4e1dd3b363e
switched back to any type switched back to any type
Use the logger pls Use the logger pls
|
|||||||
Loading…
Add table
Reference in a new issue
I dont think you can type event as a a Session, from the app typedefs you made it should be event.locals.[session or user idk]