lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
9.18k stars 466 forks source link

[Docs]: missing import in example code #1573

Closed skorphil closed 3 months ago

skorphil commented 4 months ago

Description

Here https://lucia-auth.com/tutorials/username-and-password/astro#:~:text=generateIdFromEntropySize there is no import { generateIdFromEntropySize } from "lucia";

andyrue commented 3 months ago

Should we use generateId() instead?

skorphil commented 3 months ago

Should we use generateId() instead?

Didnt get it. You can just import generateIdFromEntropySize and use it as the docs suggest.

andyrue commented 3 months ago

Oh, haha. I misunderstood your issue. My issue was there was no generateIdFromEntropySize to import from lucia, so I was having to use generateId instead. I later realized I wasn't on the latest version of lucia.

skorphil commented 3 months ago

@andyrue yeah, I just meant the docs missing the necessary import. So it's typo for me.