增加默认密钥

v1
宇天 2020-09-24 15:34:25 +08:00
parent f599474284
commit db73867f9f
1 changed files with 1 additions and 1 deletions

View File

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