feat: expose actkey expires at

This commit is contained in:
Shibo Lyu 2024-12-06 00:17:46 +08:00
parent 214ccd90c3
commit d31970be78
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@blah/core",
"version": "0.3.1",
"version": "0.3.2",
"exports": {
"./crypto": "./crypto/mod.ts",
"./identity": "./identity/mod.ts"

View file

@ -98,6 +98,10 @@ export class BlahActKey {
);
}
get expiresAt(): Date {
return this.internalExpiresAt;
}
get isExpired(): boolean {
return new Date() > this.internalExpiresAt;
}