Skip to content

Remove Lucia from the lucia adder #68

@AdrianGonz97

Description

@AdrianGonz97

The library is being deprecated in favor of users implementing the session handling themselves (see: lucia-auth/lucia#1707).

I've migrated over an example project that uses the /demo route that our adder creates: https://github.com/AdrianGonz97/definitely-not-lucia-sveltekit-example

and honestly, it's not all that much different besides the additional ~60 LoC in lib/server/auth.ts (which can be further simplified). With this change, we may also be able to pull off the // TODO: comment idea that @benmccann proposed for users that don't necessarily want to use drizzle

There's also been mentions of a potential scaffolding CLI where it adds the necessary session handling code to your project. We may be able to utilize this as well (if it's ever made).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions