...
/Only Allowing Authenticated Users to Answer a Question
Only Allowing Authenticated Users to Answer a Question
Learn to prevent unauthorized users from answering a question.
We'll cover the following...
Let's focus on the QuestionPage
component now and only allow an answer to be submitted if the user is authenticated: