Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: missing import in example code #1573

Closed
skorphil opened this issue May 20, 2024 · 4 comments · Fixed by #1594
Closed

[Docs]: missing import in example code #1573

skorphil opened this issue May 20, 2024 · 4 comments · Fixed by #1594
Labels
documentation Improvements or additions to documentation

Comments

@skorphil
Copy link

Description

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

@skorphil skorphil added the documentation Improvements or additions to documentation label May 20, 2024
@andyrue
Copy link

andyrue commented Jun 4, 2024

Should we use generateId() instead?

@skorphil
Copy link
Author

skorphil commented Jun 6, 2024

Should we use generateId() instead?

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

@andyrue
Copy link

andyrue commented Jun 6, 2024

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
Copy link
Author

skorphil commented Jun 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants