Node.js API Masterclass with Express and MongoDB - Sending JWT in a Cookie

Node.js API Masterclass with Express and MongoDB - Sending JWT in a Cookie

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to manage token storage using cookies and local storage, emphasizing security considerations. It introduces the Cookie Parser package for handling cookies in Node.js applications. The tutorial covers creating a function to send token responses, setting cookie expiration to match JWT expiration, and sending cookies and JSON data in responses. Testing the implementation with Postman is demonstrated, and setting the secure flag for cookies in production environments is discussed.

Read more

1 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What new insight or understanding did you gain from this video?

Evaluate responses using AI:

OFF