mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-28 09:14:57 +03:00
fix: token exp
This commit is contained in:
parent
ee2e1687df
commit
385e9afba6
@ -126,7 +126,8 @@ export class Token {
|
||||
|
||||
get isExpired() {
|
||||
if (!this._user) return true;
|
||||
return Date.now() > this._user.exp;
|
||||
// exp is in seconds
|
||||
return Date.now() > this._user.exp * 1000;
|
||||
}
|
||||
|
||||
static parse(token: string): AccessTokenMessage | null {
|
||||
|
Loading…
Reference in New Issue
Block a user