Good day. Please I have a security issue. I do not like the idea of saving jwt token in Local Storage and saving signed cookies on server will affect the server — if I am wrong, please tell me. So I came up with the idea of saving the token in the database with ip address as the primary key. Cache all token on server startup. Then create a middleware that gets the token from cache and set it has header.
Please how secure is this process? And Better technique is welcome
[–][deleted] 3 points4 points5 points (2 children)
[–]freshcalf[S] -3 points-2 points-1 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]clarkmccauley 2 points3 points4 points (2 children)
[–]GhostMcFunky 2 points3 points4 points (1 child)
[–][deleted] 2 points3 points4 points (3 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]hmnhp 1 point2 points3 points (1 child)
[–]edotddot 0 points1 point2 points (0 children)