diff --git a/index.js b/index.js index fa4e7c9..c0e6af5 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ export default { name: 'jwt', install() { var expires = this.get('session').ttl - var secret = this.get('jwt') + var secret = this.get('jwt') || 'it_is_secret_key' return { // 签名, 返回token