0
Fork 0
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:
Juan Picado @jotadeveloper 2018-09-10 18:37:35 +02:00 committed by GitHub
parent 0df8c10619
commit 4431c4799e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ export async function signPayload(
options: JWTSignOptions): Promise<string> {
return new Promise(function(resolve, reject) {
return jwt.sign(payload, secretOrPrivateKey, {
notBefore: '1000', // Make sure the time will not rollback :)
notBefore: '1', // Make sure the time will not rollback :)
...options,
}, (error, token) => error ? reject(error) : resolve(token));
});

View file

@ -79,7 +79,7 @@ class Home extends Component {
} catch (error) {
this.handleShowAlertDialog({
title: 'Warning',
message: `Unable to load package list: ${error.message}`
message: `Unable to load package list: ${error.error}`
});
}
}