Closed ericlesslie closed 5 months ago
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(); }
Description
The some of docs branching from email and password use the following import:
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.
I'm fairly certain it's a drop in replacement, since the code for isWithinExpirationDate on the oslo package is,