mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 07:00:04 +00:00
feat: JWT saved in DB + logout api added
This commit is contained in:
@@ -14,7 +14,8 @@ userRouter.post('/', async (req, res) => {
|
||||
displayname: savedUser.displayname,
|
||||
username: savedUser.username,
|
||||
isadmin: savedUser.isadmin,
|
||||
isactive: savedUser.isactive
|
||||
isactive: savedUser.isactive,
|
||||
tokens: []
|
||||
})
|
||||
} catch (err: any) {
|
||||
res.status(403).send(err.toString())
|
||||
|
||||
Reference in New Issue
Block a user