Closed skorphil closed 1 month ago
I don't see this as a typo per-se. The second Lucia
is just referencing the first one. You can either declare validateRequest()
next to Lucia
or in a different file.
@pilcrowOnPaper Well, it is just not working if you copy- paste that code, following the docs.
Maybe im missing something but what is the point of creating a new empty Lucia? It needs to be created with a db adapter(which is done earlier in the tutorial)
It’s just a placeholder for your Lucia
instance
Description
In nextJs tutorial there is error here https://lucia-auth.com/tutorials/username-and-password/nextjs-app#:~:text=const%20lucia%20%3D-,new%20Lucia(),-%3B%0A%0Aexport%20const
previously in tutorial we already created
lucia
object with database adapter: https://lucia-auth.com/tutorials/username-and-password/nextjs-app#:~:text=const%20lucia%20%3D-,new%20Lucia,-(adapter%2CFinally, need to be edited: