mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-28 16:31:55 +03:00
fix: local will request api/token (#924)
This commit is contained in:
parent
6327b5864d
commit
f47d1c2f7b
@ -64,6 +64,7 @@ export class AffineProvider extends BaseProvider {
|
||||
if (this._apis.token.isExpired) {
|
||||
try {
|
||||
const refreshToken = storage.getItem('token');
|
||||
if (!refreshToken) return;
|
||||
await this._apis.token.refreshToken(refreshToken);
|
||||
|
||||
if (this._apis.token.refresh) {
|
||||
|
Loading…
Reference in New Issue
Block a user