Home »
MCQs »
Koa.js MCQs
Which of the following methods is used to validate a user's credentials?
31. Which of the following methods is used to validate a user's credentials?
- app.authenticate()
- User. ctx.authenticate()
- is.authenticate()
- ctx.authenticate()
Answer: D) ctx.authenticate()
Explanation:
ctx.authenticate() method is used to validate a user's credentials.