Fixing JWT verify
This commit is contained in:
parent
a348001036
commit
4f54c3cd86
@ -88,7 +88,7 @@ export class AuthenticateController extends BaseController {
|
|||||||
})
|
})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await jwtTokenManager.createJWTToken(query.token as string);
|
await jwtTokenManager.getUserUuidFromToken(query.token as string);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
res.writeStatus("400 Bad Request").end(JSON.stringify({
|
res.writeStatus("400 Bad Request").end(JSON.stringify({
|
||||||
"success": false,
|
"success": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user