mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: generate secure secret key and prevent default
This commit is contained in:
1 parent
b9a79eb435
commit
f18ec35a9f
11 files changed
+45
-5
No files matched your search
@@ -3,7 +3,7 @@ import config from '../config.js'
|
||||
|
||||
const jwtOptions = {
|
||||
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
|
||||
secretOrKey: config.jwtSecret,
|
||||
secretOrKey: config.secret,
|
||||
}
|
||||
|
||||
function verifyJwt(jwtPayload, done) {
|
||||
|
||||
Reference in new issue
Block a user