Giter VIP home page Giter VIP logo

Comments (7)

yashwanth2804 avatar yashwanth2804 commented on July 24, 2024

Have the same issue crypto not found

from lucia.

premkumar5012002 avatar premkumar5012002 commented on July 24, 2024

Have the same issue crypto not found

I think the problem occurs at crypto.getRandomValues function in /packages/Lucia/src/crypto.ts at line 26

from lucia.

yashwanth2804 avatar yashwanth2804 commented on July 24, 2024

when I upgraded to node 20 seems it got solved

from lucia.

pilcrowOnPaper avatar pilcrowOnPaper commented on July 24, 2024

My guess is something is wrong with your database or adapter set up. What adapter are you using?

from lucia.

premkumar5012002 avatar premkumar5012002 commented on July 24, 2024

My guess is something is wrong with your database or adapter set up. What adapter are you using?

I didn't set withTimezone: true and mode: "date" in expires_at field to sessionTable in drizzle orm, thanks.

from lucia.

danilo1105 avatar danilo1105 commented on July 24, 2024

Hey @premkumar5012002 and @pilcrowOnPaper, I'm also stuck on this problem. What adapter are you using? I'm using PostgresJsAdapter adapter and my expires_at field is set like this:

export const sessions = createTable('user_session', {
  id: varchar('id', {length: 128 }).primaryKey(),
  userId: varchar('user_id', {length: 15}).notNull().references(() => users.id),
  expiresAt: timestamp('expires_at', {mode: 'date', withTimezone: true }).notNull(),
});

Is it possible that the problem is with this adapter?

from lucia.

danilo1105 avatar danilo1105 commented on July 24, 2024

I solved it changing to the DrizzlePostgreSQLAdapter adapter! :D

from lucia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.