Bird
0
0

What is the main purpose of generating a token in a NestJS application?

easy📝 Conceptual Q11 of 15
NestJS - Authentication
What is the main purpose of generating a token in a NestJS application?
ATo prove a user's identity without sharing their password
BTo store user passwords securely
CTo encrypt the entire database
DTo create a backup of user data
Step-by-Step Solution
Solution:
  1. Step 1: Understand token purpose

    Tokens are used to prove who a user is without sharing sensitive information like passwords.
  2. Step 2: Compare options

    Only To prove a user's identity without sharing their password correctly describes token use; others describe unrelated tasks.
  3. Final Answer:

    To prove a user's identity without sharing their password -> Option A
  4. Quick Check:

    Token purpose = Identity proof without password [OK]
Quick Trick: Tokens prove identity safely without passwords [OK]
Common Mistakes:
  • Thinking tokens store passwords
  • Confusing tokens with database encryption
  • Assuming tokens backup data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions