mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-30 10:56:31 -05:00
chore: lint
This commit is contained in:
@@ -297,7 +297,8 @@ export const freshSessionMiddleware = createAuthMiddleware(async (ctx) => {
|
||||
};
|
||||
}
|
||||
const freshAge = ctx.context.sessionConfig.freshAge;
|
||||
const lastUpdated = session.session.updatedAt?.valueOf() || session.session.createdAt.valueOf();
|
||||
const lastUpdated =
|
||||
session.session.updatedAt?.valueOf() || session.session.createdAt.valueOf();
|
||||
const now = Date.now();
|
||||
const isFresh = now - lastUpdated < freshAge * 1000;
|
||||
if (!isFresh) {
|
||||
|
||||
Reference in New Issue
Block a user