mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
fix: load package list undefined (#993)
This commit is contained in:
parent
0df8c10619
commit
4431c4799e
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ export async function signPayload(
|
||||||
options: JWTSignOptions): Promise<string> {
|
options: JWTSignOptions): Promise<string> {
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
return jwt.sign(payload, secretOrPrivateKey, {
|
return jwt.sign(payload, secretOrPrivateKey, {
|
||||||
notBefore: '1000', // Make sure the time will not rollback :)
|
notBefore: '1', // Make sure the time will not rollback :)
|
||||||
...options,
|
...options,
|
||||||
}, (error, token) => error ? reject(error) : resolve(token));
|
}, (error, token) => error ? reject(error) : resolve(token));
|
||||||
});
|
});
|
||||||
|
|
|
@ -79,7 +79,7 @@ class Home extends Component {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.handleShowAlertDialog({
|
this.handleShowAlertDialog({
|
||||||
title: 'Warning',
|
title: 'Warning',
|
||||||
message: `Unable to load package list: ${error.message}`
|
message: `Unable to load package list: ${error.error}`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue