fix: local will request api/token (#924)

This commit is contained in:
DiamondThree 2023-02-09 14:59:18 +08:00 committed by GitHub
parent 6327b5864d
commit f47d1c2f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {