mirror of
https://github.com/Blah-IM/typescript-core.git
synced 2025-04-30 16:21:10 +00:00
feat: expose actkey expires at
This commit is contained in:
parent
214ccd90c3
commit
d31970be78
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@blah/core",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"exports": {
|
||||
"./crypto": "./crypto/mod.ts",
|
||||
"./identity": "./identity/mod.ts"
|
||||
|
|
|
@ -98,6 +98,10 @@ export class BlahActKey {
|
|||
);
|
||||
}
|
||||
|
||||
get expiresAt(): Date {
|
||||
return this.internalExpiresAt;
|
||||
}
|
||||
|
||||
get isExpired(): boolean {
|
||||
return new Date() > this.internalExpiresAt;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue