lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.61k stars 448 forks source link

[Docs]: Lucia Email and Password Guide Imports #1428

Closed ericlesslie closed 5 months ago

ericlesslie commented 5 months ago

Description

The some of docs branching from email and password use the following import:

import { isWithinExpiration } from "oslo";

Specifically, the out of date documentation is on email verification codes and email verification links. The correct export is named isWithinExpirationDate as shown in password reset.

import { isWithinExpirationDate } from "oslo";

I'm fairly certain it's a drop in replacement, since the code for isWithinExpirationDate on the oslo package is,

export function isWithinExpirationDate(date) {
    return Date.now() < date.getTime();
}