mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-24 12:54:31 +02:00
Fix scan for audiobook directories in root dir
This commit is contained in:
parent
5ecfaa88c2
commit
a93f409dcd
11 changed files with 157 additions and 11 deletions
|
@ -75,6 +75,10 @@ class Auth {
|
|||
verifyToken(token) {
|
||||
return new Promise((resolve) => {
|
||||
jwt.verify(token, process.env.TOKEN_SECRET, (err, payload) => {
|
||||
if (!payload || err) {
|
||||
Logger.error('JWT Verify Token Failed', err)
|
||||
return resolve(null)
|
||||
}
|
||||
var user = this.users.find(u => u.id === payload.userId)
|
||||
resolve(user || null)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue