Skip to content

Update lucia integration to use the new getRequestEvent functionality #493

@ollema

Description

@ollema

I think it would make sense if this check:

export const load${ts(': PageServerLoad')} = async (event) => {
if (!event.locals.user) {
return redirect(302, '/demo/lucia/login');
}
return { user: event.locals.user };
};

was rewritten into a shared function using the new getRequestEvent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions