New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lucia

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucia - npm Package Compare versions

Comparing version 3.0.0-beta.0 to 3.0.0-beta.1

2

dist/auth/database.d.ts

@@ -23,3 +23,3 @@ import type { DatabaseSessionAttributes, DatabaseUserAttributes } from "../index.js";

export interface DatabaseSession {
sessionId: string;
userId: string;
expiresAt: Date;

@@ -26,0 +26,0 @@ id: string;

@@ -52,5 +52,5 @@ import { AuthRequest } from "./request.js";

sessions.push({
id: databaseSession.sessionId,
id: databaseSession.id,
expiresAt: databaseSession.expiresAt,
userId: databaseSession.id,
userId: databaseSession.userId,
fresh: false,

@@ -69,3 +69,3 @@ ...this.getSessionAttributes(databaseSession)

if (!databaseUser) {
await this.adapter.deleteSession(databaseSession.sessionId);
await this.adapter.deleteSession(databaseSession.id);
debug.session.fail("Session not found", sessionId);

@@ -77,3 +77,3 @@ return { session: null, user: null };

debug.session.fail("Session expired", sessionId);
await this.adapter.deleteSession(databaseSession.sessionId);
await this.adapter.deleteSession(databaseSession.id);
return { session: null, user: null };

@@ -85,3 +85,3 @@ }

expiresAt = this.sessionController.createExpirationDate();
await this.adapter.updateSession(databaseSession.sessionId, {
await this.adapter.updateSession(databaseSession.id, {
expiresAt

@@ -92,4 +92,4 @@ });

const session = {
id: databaseSession.sessionId,
userId: databaseSession.id,
id: databaseSession.id,
userId: databaseSession.userId,
fresh,

@@ -109,4 +109,4 @@ expiresAt,

await this.adapter.setSession({
sessionId,
id: userId,
id: sessionId,
userId,
expiresAt: sessionExpiresAt,

@@ -113,0 +113,0 @@ attributes

{
"name": "lucia",
"version": "3.0.0-beta.0",
"version": "3.0.0-beta.1",
"description": "A simple and flexible authentication library",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc