Lucia Authentication #8
|
|
@ -1,7 +1,7 @@
|
|||
|
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';
|
||||
export async function load(event) {
|
||||
console.log(event.userId);
|
||||
|
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.userId;
|
||||
|
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
|
||||
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');
|
||||
|
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
|
||||
if (!userId) {
|
||||
return {
|
||||
authenticated: false
|
||||
|
|
|
|||
|
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
|
||||
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]