Search posts, tags, users, and pages
Joshua M
Software engineer, Technical writer
Table of contents Introduction The Concept of Authentication and Authorization Authentication Authorization Setting up the development files, installing required packages, and creating a database Creating Main Route and API server instance C...
Mikael Engvall
I had to use
jwt.verify(cookie, process.env.SECRET_ACCESS_TOKEN, async (err, decoded) => {
instead of
jwt.verify(cookie, config.SECRET_ACCESS_TOKEN, async (err, decoded) => {
in the verify.js file because config wasn't defined.
Amazing article
Mikael Engvall
I had to use
jwt.verify(cookie, process.env.SECRET_ACCESS_TOKEN, async (err, decoded) => {
instead of
jwt.verify(cookie, config.SECRET_ACCESS_TOKEN, async (err, decoded) => {
in the verify.js file because config wasn't defined.