Skip to content

Commit

Permalink
fix: check postgres expiresAt is a date - related to lucia-auth#1666
Browse files Browse the repository at this point in the history
  • Loading branch information
cliftonc committed Aug 17, 2024
1 parent 3036a2e commit 4e6dd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-postgresql/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function transformIntoDatabaseSession(raw: SessionSchema): DatabaseSession {
return {
userId,
id,
expiresAt,
expiresAt: expiresAt instanceof Date ? expiresAt : new Date(expiresAt),
attributes
};
}
Expand Down

0 comments on commit 4e6dd22

Please sign in to comment.